PHP Remplacer le caractère de retour

$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
Difficult Dotterel