-
I want to get the name of the worksheet. How can I get it on 3.1 |
Beta Was this translation helpful? Give feedback.
Answered by
jin541223
Jan 12, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jin541223
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$spreadsheet = new Spreadsheet();
$objRead = IOFactory::createReader('Xls');
$spreadsheet = $objRead->load($file); // 导入excel
$sheetNames = $spreadsheet->getSheetNames(); // 所有sheetNames