php str_replace multiple
snippet in php

php str_replace multiple

user806

str_replace(array(':', '\\', '/', '*'), ' ', $string);

php str_replace multiple

user4778

print str_replace(
    array("search1","search2"),
    array("replace1", "replace2"),
    "search1 search2"
);