bagaimana menghapus r n dari string dalam php
$text = preg_replace("/\r|\n/", "", $text);
Mohamad
$text = preg_replace("/\r|\n/", "", $text);
//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);