note 130558 added to function.fputcsv

From: Date: Fri, 28 Nov 2025 09:25:45 +0000
Subject: note 130558 added to function.fputcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-222436@lists.php.net to get a copy of this message
I wanted to point out that the current documentation for fputcsv() is outdated. Starting with PHP 8.2, the $escape parameter must be explicitly provided, as its default value will change in future versions. Failing to specify it will trigger a warning. Example of the correct usage in PHP 8.2+: fputcsv($handle, $fields, ",", '"', "\\"); It would be helpful if the documentation is updated to reflect this change, so developers are aware that all parameters need to be specified explicitly in PHP 8.2 and later. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 81.250.237.191) ---- Manual Page -- https://php.net/manual/en/function.fputcsv.php Edit -- https://main.php.net/note/edit/130558 Del: integrated -- https://main.php.net/note/delete/130558/integrated Del: useless -- https://main.php.net/note/delete/130558/useless Del: bad code -- https://main.php.net/note/delete/130558/bad+code Del: spam -- https://main.php.net/note/delete/130558/spam Del: non-english -- https://main.php.net/note/delete/130558/non-english Del: in docs -- https://main.php.net/note/delete/130558/in+docs Del: other reasons-- https://main.php.net/note/delete/130558 Reject -- https://main.php.net/note/reject/130558 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222436) next »