php replace return character
snippet in php

php replace return character

user6279

$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);