Php – String Search

Solution:

$sub = substr($string, strpos($string, " "));

You may need to use strpos($string, " ") + 1 depending on if you want that extra space.

(strpos finds the first occurence of a character.)