PHP reemplazar el carácter de retorno

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