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

  作者:bea

<?php $f=fopen("test.txt","wb"); $text=utf8_encode("顨!"); //addingheader $text="xEFxBBxBF".$text; fputs($f,$text); fclose($f); ?>