This is not the explode can solve
I have several array
$order
data: {5,3,2}
$title,
data: {USA, England, China}
$attribute
Same idea
$type
Same idea
The $order has already exist some value
{5,3,2} and
for each has its $title,$attribute,$type value correspondingly
eg. 5 USA att5 type5
I would like to sort the order to {2,3,5} and the corresponding data in other array will be sorted too.
eg. {2,3,5}
For the array $title afterwards
is
{China, England,USA}
How to implement this for all arrays? Thank you
My idea is using an associative array , and i can sort the key, and everything is done. However, I can not generate the array
My idea array:
$records = array(5 => array("title" => "USA", "att" => "add5"),
3 => array("title" => "England", "att" => "add3"),
2 => array("title" => "China", "att" => "add2"));