thepip3r Posted December 15, 2009 Share Posted December 15, 2009 if i have an array that looks like: [EPM] => Array ( [0] => Array ( [uts] => 1255849200 [amount] => 6.45 ) [1] => Array ( [uts] => 1255852800 [amount] => 7.32 ) [2] => Array ( [uts] => 1255856400 [amount] => 7.12 ) [3] => Array ( [uts] => 1255860000 [amount] => 7.03 ) [4] => Array ( [uts] => 1255863600 [amount] => 7.38 ) ...how can i sort "EPM" based off of the ['EPM'][$x]['amount'] value? any pointers? Link to comment https://forums.phpfreaks.com/topic/185278-php-multi-dim-array-sorting-question/ Share on other sites More sharing options...
roopurt18 Posted December 15, 2009 Share Posted December 15, 2009 The documentation for array_multisort() has an example of such an operation. Link to comment https://forums.phpfreaks.com/topic/185278-php-multi-dim-array-sorting-question/#findComment-978109 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.