/**
*
* GBK转换成UTF-8
* @param $array
*/
public static function gbkToUtf8($array)
{
return eval('return '. iconv("GBK", "UTF-8//IGNORE", var_export($array, true).';'));
}
/**
*
* UTF-8转换成GBK
* @param $array
*/
public static function utf8ToGbk($array)
{
return eval('return '. iconv("UTF-8", "GBK//IGNORE", var_export($array, true).';'));
}