MoisesZaragoza Posted June 1, 2009 Share Posted June 1, 2009 Ok What i Need to do is sort the array the order I have $array_Test['TestID'][1] ="1" $array_Test['Name'][1] = "Joe" $array_Test['order'][1] ="3" $array_Test['TestID'][2] ="2" $array_Test['Name'][2] = "Ana" $array_Test['order'][2] ="1" $array_Test['TestID'][3] ="3" $array_Test['Name'][3] = "Mara" $array_Test['order'][3] ="2" and i need them to end up like $array_Test['TestID'][1] ="3" $array_Test['Name'][1] = "Mara" $array_Test['order'][1] ="2" $array_Test['TestID'][2] ="2" $array_Test['Name'][2] = "Ana" $array_Test['order'][2] ="1" $array_Test['TestID'][3] ="1" $array_Test['Name'][3] = "Joe" $array_Test['order'][3] ="3" Quote Link to comment https://forums.phpfreaks.com/topic/160426-sort-array/ Share on other sites More sharing options...
.josh Posted June 1, 2009 Share Posted June 1, 2009 array_multisort Quote Link to comment https://forums.phpfreaks.com/topic/160426-sort-array/#findComment-846577 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.