sort()?
| From: | Daniel Vesma | Date: | Tue, 04 Jul 2000 11:55:15 +0000 |
| Subject: | sort()? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4723@lists.php.net to get a copy of this message | ||
Hi,
I will try to make this my only question today...
I have a multi-dimensional array containing the values of the type...
$myArray[0][0] contains the value "10"
$myArray[0][1] contains the value "127"
$myArray[0][2] contains the value "Mr Demohead"
$myArray[1][0] contains the value "20"
$myArray[1][1] contains the value "51"
$myArray[1][2] contains the value "Mrs Demohead"
Am I wrong, or when I use sort($myArray), should they swap order so that
$myArray[1][0] comes before $myArray[0][0]?
Have I misunderstood the concept of multi-dimensional arrays?
Many thanks for all of your help on this, you guys are great.
Daniel Vesma - IT and Webdesign Manager
The Web Tree: http://www.thewebtree.com