Php reemplazar la cadena dentro de la cadena
$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);