[PHP] Re: preg_replace_callback

2006-05-04 Thread Al
tJey wrote: Hi. I have problem with preg_replace_callback. It seems that my pattern is bad, but I can't find any error. Pattern : \[\s*((\d|\w|_)+)\s*\] this pattern is intended to find strings like "[field]", "[ fi12_eld]"... but every time I get warning message "Warning: preg_replace_callbac

[PHP] Re: preg_replace_callback

2002-07-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Rafael Fernandes) wrote: > First, sorry for my elementary english... > I need a function made for PHP3 that works like preg_replace_callback... Before preg_replace_callback() was introduced, preg_replace() used to have another an "f" modifier

[PHP] Re: preg_replace_callback()

2001-09-10 Thread Robin Vickery
[EMAIL PROTECTED] (Richard Lynch) writes: > A "callback" is when you execute a function, and you provide to it a name of > *another* function, which it will call on some data in the middle of its > task. > > It's a very handy way to provide extreme flexibility in functional > languages. > > For

[PHP] Re: preg_replace_callback()

2001-09-08 Thread Richard Lynch
A "callback" is when you execute a function, and you provide to it a name of *another* function, which it will call on some data in the middle of its task. It's a very handy way to provide extreme flexibility in functional languages. For example: function my_array_walk($array, $function){ w