Re: cvs: php-src /ext/standard array.c /ext/standard/tests/array array_walk.phpt array_walk_objects.phpt array_walk_rec_objects.phpt
array_walk_recursive1.phpt
| From: | Michael Wallner | Date: | Tue, 19 Sep 2006 15:52:58 +0000 |
| Subject: | Re: cvs: php-src /ext/standard array.c /ext/standard/tests/array array_walk.phpt array_walk_objects.phpt array_walk_rec_objects.phpt array_walk_recursive1.phpt |
||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-40603@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
> Why do we want to continue treating objects as arrays? Can't people
> simply pass get_object_vars($obj) result to array_walk?
That won't work because array_walk() takes a reference.
--
Michael