Answer the question
In order to leave comments, you need to log in
How to parse excel headers with php?
When loading a regular excel file, I get the headers like this
$headers = $list
->rangeToArray(
'A1:'.$list->getHighestColumn().'1',
null,
false,
false,
true
);
Answer the question
In order to leave comments, you need to log in
There is no universal solution in this case. Since all you operate on is cells, rows, columns.
Here only apply logic from the category, but how does a person determine where the headers and data begin?
For example, that this is an N-sequence of cells in a row in bold without merging followed by a data stream in the same format, and so on.
And based on this, we are already writing an algorithm in PHP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question