[PHP] Write UTF-8 file

Add BOM: UTF-8

file_put_contents($myFile, "\xEF\xBB\xBF".  $content);
posted @ 2014-10-30 21:26  Zhentiw  阅读(183)  评论(0)    收藏  举报