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" 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 Link to comment https://forums.phpfreaks.com/topic/160426-sort-array/#findComment-846577 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.