基于另一个数组按键对数组进行排序?
$customer['address'] = '123 fake st';$customer['name'] = 'Tim';$customer['dob'] = '12/08/1986';$customer['dontSortMe'] = 'this value doesnt need to be sorted';
$properOrderedArray = sortArrayByArray($customer, array('name', 'dob', 'address'));
元芳怎么了
潇湘沐