php replace element in string code example
Example 1: php replace return character
$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
Example 2: php replace
str_replace ($search, $replace, $subject);
$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
str_replace ($search, $replace, $subject);