perezf Posted February 22, 2009 Share Posted February 22, 2009 How can i sort this array by the distance value Array ( [0] => Array ( [zip] => 33028 [distance] => 3.60 ) [1] => Array ( [zip] => 33325 [distance] => 4.45 ) [2] => Array ( [zip] => 33326 [distance] => 3.17 ) [3] => Array ( [zip] => 33327 [distance] => 4.59 ) [4] => Array ( [zip] => 33330 [distance] => 2.87 ) [5] => Array ( [zip] => 33331 [distance] => 0.00 ) [6] => Array ( [zip] => 33332 [distance] => 3.28 ) ) Link to comment https://forums.phpfreaks.com/topic/146312-solved-php-array-sort/ Share on other sites More sharing options...
Cosizzle Posted February 22, 2009 Share Posted February 22, 2009 uasort http://ca3.php.net/manual/en/function.uasort.php Link to comment https://forums.phpfreaks.com/topic/146312-solved-php-array-sort/#findComment-768126 Share on other sites More sharing options...
perezf Posted February 22, 2009 Author Share Posted February 22, 2009 im not really sure on how to implement this Link to comment https://forums.phpfreaks.com/topic/146312-solved-php-array-sort/#findComment-768131 Share on other sites More sharing options...
perezf Posted February 22, 2009 Author Share Posted February 22, 2009 I got it thanks for the help that really did work Link to comment https://forums.phpfreaks.com/topic/146312-solved-php-array-sort/#findComment-768134 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.