foreach ($array as $key=>$value) { $new_array[$key] = iconv('UTF-8', 'GBK', $value); } asort($new_array); foreach ($new_array as $key=>$value) { $array[$key] = iconv('GBK', 'UTF-8', $value); }