Re: array_walk inside class method
| From: | S. Murali Krishna | Date: | Mon, 07 Jan 2002 08:49:48 +0000 |
| Subject: | Re: array_walk inside class method | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79667@lists.php.net to get a copy of this message | ||
Hi
Thanks for ur help.
Its Working but I couldn't understand the syntax given by u
can u explain pls.
Thanks again.
On Sun, 6 Jan 2002, Gyozo Papp wrote:
> it may be better:
>
> array_walk($this->array, array(&$this, 'func1');
>
> "Attila Strauss" <shortys@gmx.li> wrote in message
> news:001d01c195db$67647da0$6200a8c0@twenty.one...
> | hi
> |
> | $this->func1();
> |
> |
> | best regards
> | attila
> |
> |
> | >
> | >
> | > 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
> | > -------------------------------------
> | >
> | >
> | > --
> | > PHP General Mailing List (http://www.php.net/)
> | > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> | > For additional commands, e-mail: php-general-help@lists.php.net
> | > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> | >
> |
>
S.Murali Krishna
smk_bk@yahoo.com
=====================================
We grow slow trying to be great
- E. Stanley Jones
-------------------------------------