07-30-2011, 01:37 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
|
Array Sorting !
Am at my wits end here and am hoping there is a quick and easy solution....
I need to sort a multi dimentional array, the array is built as follows (abridged):
Code:
$i++;
$missed[$i] = array($row[3], $row[4], ($weeks - $num_rows));
so for example the data would look like :
Code:
$missed[0] = array(Fred, Smith, 3)
$missed[1] = array(Bert, Smith, 99)
$missed[2] = array(Gerty, Blogs, 22)
My problem is, how do I sort the array $missed on the last number in the array ?
Or, am I going about this in the wrong way ?
__________________
Thanks... Simon
Sex, Drugs & Linux Rules
|
|
|