php substitute string characters code example
Example: php replace return character
$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);