PHP GBK UTF8互转
程序员文章站
2022-05-07 14:34:32
...
留作标记 无 function gbk_to_utf8($str){return mb_convert_encoding($str, 'utf-8', 'gbk');}function utf8_to_gbk($str){return mb_convert_encoding($str, 'gbk', 'utf-8');}
留作标记
function gbk_to_utf8($str){ return mb_convert_encoding($str, 'utf-8', 'gbk'); } function utf8_to_gbk($str){ return mb_convert_encoding($str, 'gbk', 'utf-8'); }
上一篇: 正则问题求教