Answers for "how can i replace multiple characters in a string in php"

PHP
2

php str_replace multiple

str_replace(array(':', '\\', '/', '*'), ' ', $string);
Posted by: Guest on October-09-2020
-1

how to replace multiple characters in a string in php

to replace double quotes, you can do this:
$newPhrase = str_replace('"', '', $phrase);
Posted by: Guest on July-29-2021

Code answers related to "how can i replace multiple characters in a string in php"

Browse Popular Code Answers by Language