Req #64183 [Fbk->NoF]: Why no str_PUTcsv()?

From: Date: Sun, 19 Sep 2021 04:22:08 +0000
Subject: Req #64183 [Fbk->NoF]: Why no str_PUTcsv()?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236685@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64183&edit=1 ID: 64183 Updated by: php-bugs@lists.php.net Reported by: cstdenis at ctgameinfo dot com Summary: Why no str_PUTcsv()? -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: Strings related Operating System: n/a PHP Version: 5.4.11 Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2021-09-09 11:03:13] cmb@php.net > Yes, the PHP language need this feature ! :-) Why? Just for the sake of providing a (possibly reasonable) counterpart to an unreasonable str_getcsv() isn't a proper argument. Can anyone provide a use case where str_fputscsv() would be helpful? ------------------------------------------------------------------------ [2017-09-27 14:11:51] cmb@php.net function str_putcsv( array $fields, string $delimiter = ',', string $enclosure = '"', string $escape_char = '\\' ) { $stream = fopen('php://memory', 'w+'); fputcsv($stream, $fields, $delimiter, $enclosure, $escape_char); rewind($stream); return stream_get_contents($stream); } ------------------------------------------------------------------------ [2013-02-13 22:17:19] sunseb at live dot com Yes, the PHP language need this feature ! :-) ------------------------------------------------------------------------ [2013-02-10 12:37:04] cstdenis at ctgameinfo dot com Description: ------------ There is a fgetcsv(), fputcsv(), str_getcsv(), but str_putcsv() is missing. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64183&edit=1

« previous php.bugs (#236685) next »