Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y
| From: | Sebastian Bergmann | Date: | Thu, 24 Jul 2003 13:03:54 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3589@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote:
> Log:
> Support references in foreach()
> Syntax:
> foreach ($arr as &$val)
> foreach ($arr as $key => &$val)
Does this mean that before this patch
foreach ($arr as $val) {}
did not put a reference in $val but a copy (clone)?
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/