Answers for "php remove new line characters from string"

PHP
5

php replace return character

$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
Posted by: Guest on May-14-2020

Code answers related to "php remove new line characters from string"

Browse Popular Code Answers by Language