PHP检测当前输入对象字符格式


mb_detect_encoding($str,array("ASCII","UTF8","GB2312","GBK","BIG5");



优先输出数组中格式,若数组中没有对应格式则从该函数的系统格式库中取出对应格式

猜你喜欢

转载自blog.csdn.net/zxc123789tm/article/details/80894614