How to sort an array by values of another array?
The two arrays
$arr = ['banan','apple'];
$arr2 = ['apple','banan','pear'];
Need to do sorting on the first array, although it is shorter than the second, to such array
asked March 19th 20 at 09:03
Find more questions by tags PHP