首页 >php教程 >php手册 >PHP GBK UTF8互转

PHP GBK UTF8互转

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-06 19:38:331383浏览

留作标记 无 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');
}
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn