search multiple char and replace single in php code example
Example 1: php str_replace multiple
str_replace(array(':', '\\', '/', '*'), ' ', $string);
Example 2: php str_replace multiple
print str_replace(
array("search1","search2"),
array("replace1", "replace2"),
"search1 search2"
);