Re: Re: Still cnanot figure out with much easier example...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



news.php.net wrote:
Just compare the output of print_r($arr) and foreach(...)... !!! Please, explain, or my understanding of the php is gonna ruin.
Thanx, Mark.


<?
 $as = array();
 $a10 = "10";
 $a20 = "20";

 $a = &$a10;
 $arr[] = &$a;
 $a = &$a20;
 $arr[] = &$a;

 print_r($arr);
 foreach($arr as $a)
 {
  echo $a;
 }
?>


You can file this as a bug.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux