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]
|