Answers for "replace a part of string in php"

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 replace string

str_replace ($needle, $replacement, $haystack);
Posted by: Guest on March-28-2021

Code answers related to "replace a part of string in php"

Browse Popular Code Answers by Language