//清空文件的BOM头(PHP代码函数)
//代码来源:Monxin ./config/functions.php
function clear_bom($str){
$charset[1]= substr($str, 0, 1);
$charset[2] = substr($str, 1, 1);
$charset[3] = substr($str, 2, 1);
if(ord($charset[1])== 239 && ord($charset[2]) == 187 && ord($charset[3])== 191){$str=substr($str, 3);}
return $str;
}
清空文件的BOM头(PHP代码函数)
最新推荐文章于 2021-03-28 14:36:25 发布
