ã¿ã¤ãã«éãã æ¬å½ã«é¢åããããå¤ãã·ã¹ãã ã ã¨å ¨ã¦ã®ã«ã©ã ã«mb_comvert_encodingãæ¸ãã¦ãã人çãªãã¹ã§ã¨ã³ã³ã¼ããå¿ããããã ãµã¨èª¿ã¹ã¦ãããããã¡ã¤ã«ã«ä¿åããéã«ããã«ããæ¹ã楽ã fp = fopen('hogehoge.csv', 'w'); stream_filter_prepend($fp,'convert.iconv.utf-8/cp932'); fopen($fp, "w"); foreach($data as $v){ $line = "hoge,fuga,moge"; fwrite($fp, $line . "\n"); } ãã¡ãã¡æåã³ã¼ããã¢ã¬ã³ã¬ããªãã¦ã stream_filter_prependãæãã¦ããã°ããã§ããã
{{#tags}}- {{label}}
{{/tags}}