array_walk inside class method
| From: | S. Murali Krishna | Date: | Sat, 05 Jan 2002 10:38:10 +0000 |
| Subject: | array_walk inside class method | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79549@lists.php.net to get a copy of this message | ||
Hi All,
I want to use "array_walk" function inside a class method. But the
problem is i want the second argument to array_walk ( function name )
be a another function of the same class. when i gave like that its telling
Error : function not exist.
class some()
{
function func1()
{
}
function func2()
{
array_walk($array,"func1");
}
}
What is the syntax or way to do this.
Thanks in Advance.
S.Murali Krishna
smk_bk@yahoo.com
=====================================
We grow slow trying to be great
- E. Stanley Jones
-------------------------------------