Jump to content

Sort Array


MoisesZaragoza

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.