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 ) ) Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.