Re: foreach, assigning to a reference, and E_NOTICE
From: Xuefer Date: Tue, 07 Mar 2006 02:55:05 +0000 Subject: Re: foreach, assigning to a reference, and E_NOTICE References: 1 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
try: <?php $i = array('zero','one','two'); foreach ($i AS &$j) {} unset($j) // <-------- this foreach ($i AS $j) { echo $j . " "; } ?> it's known behavior. may app rely on this.
Thread (10 messages)
« previous | php.internals (#22159) | next » |
---|