/** * 支持数组方式递归转换的iconv * @author Wilson Zeng | wilsonzeng@ppstream.com | jackzcs@gmail.com * @param unknown_type $inCharset * @param unknown_type $outCharset * @param unknown_type $strArr */ function exIconv($inCharset, $outCharset, $strArr) { if (is_array($strArr)) { $returnArr = array(); foreach ($strArr as $key => $str) { $returnArr[$key] = exIconv($inCharset, $outCharset, $str); } return $returnArr; } else { return iconv($inCharset, $outCharset, $strArr); } }