Re: Translation help

From: Date: Fri, 06 Jan 2012 02:07:50 +0000
Subject: Re: Translation help
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969383560@lists.php.net to get a copy of this message
On Jan 5, 2012, at 4:19 PM, Thiago H. Pojda wrote: > Guys, > > Can anyone help me understanding the following sentence? > > Whether or not the correlation between the keys and values are > maintained after the sort, which may mean the keys are reset > numerically (0,1,2 ...) > > http://br2.php.net/manual/en/array.sorting.php Hello Thiago, It means whether or not the key association is maintained. For example: $fruit = array('banana', 'orange', 'apple'); echo $fruit[0]; // banana sort($fruit); echo $fruit[0]; // apple So sort() does not maintain the correlation between key and value. That description should use simpler and less wordy English, but don't go and look up who wrote it because SVN lies! ;) Regards, Philip

« previous php.doc (#969383560) next »