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