Home >php教程 >php手册 >PHP GBK UTF8互转

PHP GBK UTF8互转

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 19:38:331419browse

留作标记 无 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');
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn