|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64183 Why no str_PUTcsv()?
Submitted: 2013-02-10 12:37 UTC Modified: 2017-09-27 14:11 UTC
Avg. Score:4.2 ± 0.8
Reproduced:25 of 25 (100.0%)
Same Version:10 (40.0%)
Same OS:15 (60.0%)
From: cstdenis at ctgameinfo dot com Assigned:
Status: Open Package: Strings related
PHP Version: 5.4.11 OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cstdenis at ctgameinfo dot com
New email:
PHP Version: OS:


 [2013-02-10 12:37 UTC] cstdenis at ctgameinfo dot com
There is a fgetcsv(), fputcsv(), str_getcsv(), but str_putcsv() is missing. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-13 22:17 UTC] sunseb at live dot com
Yes, the PHP language need this feature ! :-)
 [2017-09-27 14:11 UTC]
function str_putcsv(
    array $fields,
    string $delimiter = ',', 
    string $enclosure = '"', 
    string $escape_char = '\\'
) {
    $stream = fopen('php://memory', 'w+');
    fputcsv($stream, $fields, $delimiter, $enclosure, $escape_char);
    return stream_get_contents($stream);
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Aug 02 05:01:23 2021 UTC