I'd like ask on my problem with formatting array. I'm importing data to system from .XLSX. Function return me array which one looks like:
My question is how I can insert this data to table if I know array with index 1 and with number 1 is Name e.t.c?
I can write SQL but I can't write foreach. I already tried make some foreach but without success.
Thank you one more time
Here is solution:
/** @var int $count */
$count = count($spreadsheet);
$s = array();
for($i = 1; $i < $count; ++$i) {
$s = $spreadsheet[$i];
}
return $s;