您将使用以下代码删除utf8 bom
//Remove UTF8 Bomfunction remove_utf8_bom($text){ $bom = pack('H*','EFBBBF'); $text = preg_replace("/^$bom/", '', $text); return $text;}
您将使用以下代码删除utf8 bom
//Remove UTF8 Bomfunction remove_utf8_bom($text){ $bom = pack('H*','EFBBBF'); $text = preg_replace("/^$bom/", '', $text); return $text;}