Re: preg_replace_callback(), how to pass function argument/param?

From: Date: Sun, 30 Mar 2008 18:37:27 +0000
Subject: Re: preg_replace_callback(), how to pass function argument/param?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-272317@lists.php.net to get a copy of this message
Hi Casey! Many thanks for your help! I greatly appreciate it. :) >> preg_replace_callback($f, 'mah_processTags($arg1)', $text); > preg_replace_callback($f, 'mah_processTags(\'$0\', $arg1)', $text); > Does this work? Ah, interesting... Thanks for the example code... I am at work now, but will try that as soon as I get home later tonight. Your code examp looks very promising -- I will let you know how it goes. A billion thanks! Cheers, Micky

« previous php.general (#272317) next »