I have 2 arrays like th开发者_StackOverflow中文版ose:
$a = array(152,32,113,47,53);
$b = array("a","w","lk","qw","ol");
I will sort $a by using asort() and I want to auto-sort the second array $b likewise $a.
How to do I?
You can use array_multisort.
http://us2.php.net/manual/en/function.array-multisort.php
精彩评论