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