Reply to Re: Numerically Indexed Arrays...Out of order???

Your name:

Reply:


Posted by Toby A Inkster on 12/08/07 13:50

kaydubbleu wrote:

> I have found that when inserting elements into an array they stay in the
> same order they are inserted, even when using numerical keys.

Yep -- see:
http://uk2.php.net/manual/en/language.types.array.php

"An array in PHP is actually an ordered map." That is, all arrays have an
inherent order.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 1 day, 17 min.]

Sharing Music with Apple iTunes
http://tobyinkster.co.uk/blog/2007/11/28/itunes-sharing/

[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

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