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

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -