comment supprimer \ r \ n de la chaîne en php
$text = preg_replace("/\r|\n/", "", $text);
Mohamad
$text = preg_replace("/\r|\n/", "", $text);
$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
//Replace the newline and carriage return characters
//using regex and preg_replace.
$text = preg_replace("/\r|\n/", "", $text);
preg_replace( "/\r|\n/", "", $yourString );
$str = preg_replace('/(\v|\s)+/', ' ', $str);
$string = str_replace(["\n", "\r"], "", $string);