Skip to content

First Column empty Issue #7

@perlatsp

Description

@perlatsp

This line can cause issues if you have a CSV file that happens to have an empty value for the first column.
ignoring the whole CSV file.
example this CSV file exported from excel.:

age,name,surname
,james,smith
,george,adams
$file = new Parser( $url );
var_dump( $file->all() ) // this will be an empty array

https://github.com/jamesgordo/php-csv-parser/blob/4021b82cf628b36dc7dfe0054f85f4ec0d8d96b8/src/Parser.php#LL181C17-L181C17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions