$string1 = 'he said hello world'; $match1 = 'hello world'; echo substr($string1, strpos($string1, $match1), strlen($match1));