PHP Substitua a string dentro da string
$new_string = str_replace( $take_out, $put_in, $string);
Poised Penguin
$new_string = str_replace( $take_out, $put_in, $string);
$string = preg_replace('/\bthe\b/', '', $string);