note 125186 added to function.fputcsv

From: Date: Sun, 12 Jul 2020 02:55:49 +0000
Subject: note 125186 added to function.fputcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-214862@lists.php.net to get a copy of this message
If you do not want to enclose strings (because you're managing that yourself or your content is already enclosed?), note that you cannot pass an empty enclosure to fputcsv. The function requires one character for that parameter. chr(0) works well: fputcsv($handle, $fields, ",", chr(0)); ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.166.36 (proxied: 70.49.240.25) ---- Manual Page -- http://php.net/manual/en/function.fputcsv.php Edit -- https://master.php.net/note/edit/125186 Del: integrated -- https://master.php.net/note/delete/125186/integrated Del: useless -- https://master.php.net/note/delete/125186/useless Del: bad code -- https://master.php.net/note/delete/125186/bad+code Del: spam -- https://master.php.net/note/delete/125186/spam Del: non-english -- https://master.php.net/note/delete/125186/non-english Del: in docs -- https://master.php.net/note/delete/125186/in+docs Del: other reasons-- https://master.php.net/note/delete/125186 Reject -- https://master.php.net/note/reject/125186 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214862) next »