Reply to Re: Any difference between these two?

Your name:

Reply:


Posted by ZeldorBlat on 12/07/05 05:43

Chung Leong wrote:
> Is there anything funcationally difference between the following
> snippets:
>
> // first
> $lines[] = array();
> $line =& $lines[count($lines) - 1];
>
> // second
> $line = array();
> $lines[] =& $line;
>
> They should do the thing. A voice in my head though is saying there's a
> subtle difference.

They look the same to me -- at the end of the day both $line and
$lines[0] point to the same, empty array. Of course #2 is more
readable and straightforward.

[Back to original 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

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