Jump to content

Array Sorting


sparks_vfr

Recommended Posts

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):

$i++;
$missed[$i] = array($row[3], $row[4], ($weeks - $num_rows));

 

so for example the data would look like :

$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 ?

Link to comment
https://forums.phpfreaks.com/topic/243285-array-sorting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.