I have this code:
I don't think str_replace accepts multi-deliminators, but what about others like preg_replace, or ereg_replace? Do any of these do this? And what would the syntax look like?PHP Code:$fcode = str_replace(" ( ", "(", $fcode);
$fcode = str_replace(" ) ", ")", $fcode);
$fcode = str_replace(" . ", ".", $fcode);
$fcode = str_replace(" ' ", "'", $fcode);
$fcode = str_replace(" , ", ",", $fcode);
I'm looking for soemthing like:
Is there anything like this?$fcode = _replace(" ( \ ) \ . \ ' \ , \", "(\)\.\'\,\", $fcode);




Reply With Quote