note 117776 deleted from function.str-getcsv by cmb
| From: | cmb@php.net | Date: | Sun, 09 Feb 2020 08:23:54 +0000 |
| Subject: | note 117776 deleted from function.str-getcsv by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214059@lists.php.net to get a copy of this message | ||
Note Submitter: nobody
----
You can parse a full standard csv string (i.e. a form posted textarea with csv lines) in one easy
step:
<?php
$fullcsv = array_map('str_getcsv', str_getcsv($str_csv,"\n"));
?>