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
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
[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
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
4 matches
Mail list logo