Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はそれらのような2つの配列を持っています:
$a = array(152,32,113,47,53); $b = array("a","w","lk","qw","ol");
asort() を使用して $a をソートし、2 番目の配列 $b を $a と同様に自動ソートします。
どうすればいいですか?
array_multisortを使用できます。
http://us2.php.net/manual/en/function.array-multisort.php