Answers for "remove character from string php and change soace _"

PHP
6

php replace return character

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

php remove control characters from string

preg_replace('/[[:cntrl:]]/', '', $input);
Posted by: Guest on June-29-2021

Code answers related to "remove character from string php and change soace _"

Browse Popular Code Answers by Language