Replies: 2 comments 1 reply
-
From one Owen to another, no, you are not missing any settings. You could certainly open an issue to request such a feature, or, even better, a PR to implement it. It does not look like it would be difficult to add. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This was implemented by PR #2842, which has been part of the official release since 1.24. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a csv file that has columns at the end with no data. The IOFactory load will not create the array columns for these final columns. If I add values to the empty columns then it generates array entries. Here is the example:
$inputFileType = IOFactory::indentify($inputFileName);
$reader = IOFactory::createReader($inputFileType);
$spreadSheet = $reader->load($inputFileName);
var_dump($spreadSheet[1]);
die();
CSV Data -
John,Doe,,
Mary,Jane,,
If you var_dump($spreadSheet[1]); it will only return the first two keys and not the final two keys.
If I change the data to be the following:
John,Doe,A,1
Mary,Jane,A,2
Then you will see the full array of data in the var_dump results.
Is there a setting I am missing in the IOFactory methods to include all columns?
Owen
Beta Was this translation helpful? Give feedback.
All reactions