Forum Moderators: coopster
//the string we are searching
$string = "this is a simple text";
//this is the position where the string
//starts we then add the length of the
//pattern to get where it ends
$position = (strpos($string, $searchPattern) + strlen($searchPattern));
//set a substring to the position where
//the search pattern ends
$result = (substr($string, $position));
echo($result);
?>