"/>
PHP头条
热点:

PHP写入WRITE编码为UTF8的文件的实现代码


$f=fopen("test.txt", "wb");
$text=utf8_encode("顨!");
// adding header
$text="\xEF\xBB\xBF".$text;
fputs($f, $text);
fclose($f);
?>

www.phpzy.comtrue/phpyy/13525.htmlTechArticlePHP写入WRITE编码为UTF8的文件的实现代码 $f=fopen("test.txt", "wb"); $text=utf8_encode("顨!"); // adding header $text="\xEF\xBB\xBF".$text; fputs($f, $text); fclose($f); ?>...

相关文章

相关频道:

PHP之友评论

今天推荐