Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: zero minus zero?
(Example: nine)

The Note You're Voting On

james at moss dot io
11 years ago
[Editor's Note (cmb): that does not produce the desired results, if fields contain linebreaks.]

Handy one liner to parse a CSV file into an array

<?php

$csv
= array_map('str_getcsv', file('data.csv'));

?>

<< Back to user notes page

To Top