Se connecter
Format › CSV
test.csv
a,b,"c d" "d","e f",g
<?php $file = new SplFileObject("test.csv"); $file->setFlags(SplFileObject::READ_CSV); foreach ($file as $row) { if (count($row) != 3) { continue; } list($a, $b, $c) = $row; printf("%s;%s;%s\n", $a, $b, $c); }
Lire les commentaires | Laisser un commentaire