有时候文件因为是utf8有bom编码的方式,在一些情况下会产生错误。需要去除bom标记。
php代码:
$string = preg_replace( '/^(\xef\xbb\xbf)/', '', $string );
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