If I have
$array1=array(3 ,7,12,56,89);
$array2=array(1 2,89,3,7,56);
Is it possible to sort $array1 so that it's in the same order as $array2? Ie. so $array1=array(1 2,89,3,7,56);
$array1=array(3 ,7,12,56,89);
$array2=array(1 2,89,3,7,56);
Is it possible to sort $array1 so that it's in the same order as $array2? Ie. so $array1=array(1 2,89,3,7,56);
Comment