It's good behavoiur because everytime even a reference gets a value,
also the target which it is pointing on should get the same value.

On Mon, 23 Sep 2002 12:57:56 +0200 (CEST), [EMAIL PROTECTED] (Jean-Pierre arneodo) 
wrote:

> Hi,
> 
> $a=1;
> $b=&$a;
> foreach(array(2,3) as $b);
> echo "a=$a";
> 
> // Print a=3
> 
> Is it the behaviour expected
> in a foreach loop?
> 
> JP
> 
> 
> ___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to