Hi,
I'm using the array_walk function within a PHP class. array_walk's second argument is the name of the function to process the first argument with. if i want to call a function within that class, i thought i had to use the "this->" prefix (no $ at the beginning, since it's just the name, not a reference). it looks like that:
array_walk($this->array, "this->function");
however this is causing an error like:
"Unable to call this->nameoffunction() - function does not exist in xyz.class.php4 on line xy"
the array function "usort" has a comparable syntax - usort(arg1 array, arg2 function) - and here this works.
is this a php bug or is there a mistake?
thanks
Matthias