Posted by News.Php.Net on 01/31/05 01:09
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; } ?>
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming