We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try { foreach ($sheet->getActiveSheet()->getRowIterator(2) as $row) { $temp = []; foreach ($row->getCellIterator('A', $endCell) as $index => $item) { $propertyIndex = ord($index) - 65; if (isset($this->property[$propertyIndex])) { $temp[$this->property[$propertyIndex]['name']] = $item->getFormattedValue(); } } if (! empty($temp)) { $data[] = $temp; } } unlink($tempFilePath); } catch (\Throwable $e) { unlink($tempFilePath); throw new MineException($e->getMessage()); } ord($index) - 65 来计算属性索引,仅适用于单个字符的列索引(A-Z)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
try {
foreach ($sheet->getActiveSheet()->getRowIterator(2) as $row) {
$temp = [];
foreach ($row->getCellIterator('A', $endCell) as $index => $item) {
$propertyIndex = ord($index) - 65;
if (isset($this->property[$propertyIndex])) {
$temp[$this->property[$propertyIndex]['name']] = $item->getFormattedValue();
}
}
if (! empty($temp)) {
$data[] = $temp;
}
}
unlink($tempFilePath);
} catch (\Throwable $e) {
unlink($tempFilePath);
throw new MineException($e->getMessage());
}
ord($index) - 65 来计算属性索引,仅适用于单个字符的列索引(A-Z)
The text was updated successfully, but these errors were encountered: