setDelimiter(';'); $writer->insertOne('Ben;7;M;2004'); $writer->insertAll([ 'Benjamin;118;M;2004', ['Benoit', '6', 'M', '2004'], ]); //we create a Reader object from the Writer object $reader = $writer->newReader(); $names = $reader ->addSortBy(function ($row1, $row2) { return strcmp($row1[0], $row2[0]); //we are sorting the name }) ->fetchColumn(); //we only return the name column ?> League\Csv\Writer and League\Csv\Reader switching mode

Using createFromString method and converting the League\Csv\Writer into a League\Csv\Reader

The table representation of the csv to be save

toHTML();?>

The Raw CSV as it will be saved


Here's the firstname ordered list