php remove new line characters from string 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);