I have two array and I want to arrange one of them based on the other one.
$sortMe = Array
(
[0] => 100
[1] => 1
[2] => 10
[3] => 1000
)
$example = Array
(
[0] => 1
[1] => 1000
[2] => 100
[3] => 10
)
how can I sort the $sortMe array based on $example to:
$sortMe = Array
(
[1] => 1
[3] => 1000
[0] => 100
[2] => 10
)