Answers for "php replace new line occurrences"

PHP
6

php replace return character

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

php replace string within string

$new_string = str_replace( $take_out, $put_in, $string);
Posted by: Guest on August-18-2020

Code answers related to "php replace new line occurrences"

Browse Popular Code Answers by Language