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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 30, 2008 at 9:37 PM, Micky Hulse <micky@xxxxxxxxxxxxx> wrote:
> Casey wrote:
>  > preg_replace_callback($f, 'mah_processTags(\'$0\', $arg1)', $text);
>  > Does this work?
>
>  Awww, does not seem to work. :(
>
>  But maybe I need to dink with the code a bit more...
>
>  I would like to avoid setting a global here. :D
>
>  Thanks for the help Casey! I will let you know if I get it working. I
>  may just have to think of a different approach here.
>
>
>
>  Cheers,
>  Micky
>
>

Hmmm. I've searched around, and it seems that only a global would work :/

-- 
-Casey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux