$string = “Hello #dudk srhhc#, how are you?”; $start = strpos($string, #dudk srhhc#) + strlen(#dudk srhhc#); $length = strlen($string) – $start; $output = substr($string, $start, $length); return $output;