PHP Remove /n character 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);