A simple question: Is this the best way to do it?
$pattern1 = \"regexp1\"; $pattern2 = \"regexp2\"; $pattern3 = \"regexp3\"; $content = preg_replace($patter
hope this example helping you to understand "find in array", and "replace from array"
$pattern=array('1','2','3'); $replace=array('one','two','tree'); $content = preg_replace($pattern,$replace, $content);