Last updated
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->openFile('source.xlsx')->openSheet();
while (($row = $excel->nextRowWithFormula()) !== null) {
foreach ($row as $cell) {
echo "[{$cell['type']}] {$cell['value']} (style {$cell['style_id']})";
if (!empty($cell['formula'])) {
echo ' formula=' . (is_array($cell['formula']) ? $cell['formula']['text'] : $cell['formula']);
}
echo PHP_EOL;
}
}