note 28929 deleted from language.oop by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 20:06:18 +0000 |
| Subject: | note 28929 deleted from language.oop by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56216@lists.php.net to get a copy of this message | ||
Note Submitter: vegard@copyleft.no
----
Remember that foreach() makes a copy of the assigned var, so don't use it on an array of
objects. And foreach does not seem to support the pointer assignment:
foreach ($objarray, &$obj) {}
-- Vego