You are here: Re: [PHP] Re: Still cnanot figure out with much easier example... « PHP « IT news, forums, messages
Re: [PHP] Re: Still cnanot figure out with much easier example...

Posted by Marek Kilimajer on 01/31/05 03:09

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация