Posted by Chung Leong on 10/28/96 11:33
What you need is $tmp = preg_replace('/<!-- (\S+) -->/ge', '$values[\1]', $line); The quotes are needed around $values[\1] because you want to pass it as code to PCRE.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming