You are here: Re: Is $Settings['string'] An Example Of An Array? « All PHP « IT news, forums, messages
Re: Is $Settings['string'] An Example Of An Array?

Posted by Andy Hassall on 11/02/05 22:47

On Wed, 02 Nov 2005 05:12:34 -0600, Lars Eighner <eighner@io.com> wrote:

>Now you probably have noticed, integers have a natural order.
>But strings don't. So you have to be very careful if you ever
>think of trying to do something like sort an associate array or
>try to form and idea of "first," "last," or "next" in relation
>to an associative array. There is no general guarantee of order
>in an associate array.

PHP differs from Perl here, in that the key ordering is preserved, in the
order that the keys were assigned (or you can modify the ordering e.g. with
ksort).
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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