php - Get string after second instance of a character -


i have string 'sn 123456 dead blah de blah de blah' , able single out remainder of string after second instance of space. best way using php?

you can use php: explode following

 $str = 'sn 123456 dead';  $strarr = explode(" ", $str, 3);  echo $strarr[2]; 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

python - GitPython: check if git is available -