$data = new Spreadsheet_excel_reader (); $data->setoutputencoding (' GBK '); $data->read (' Abc.xls '); echo $data->sheets[0][' cells '][1][1];
Sheets[0] Represents the first workbook, if you specify to read the first row of a workbook called water in Excel, the first column of data, how to write the code?
Reply to discussion (solution)
Traverse Sheet The key value of the sheet with title = water
4 years ago Get PHP, basically forget, can you directly to the code?
You're not using this stuff, maybe you can put him on the cloud.
Did you get one of them? Give a code
The study of the afternoon, according to Forain2012 said to traverse the sheet table, you can specify to indicate, do not know if there is any simple method.
Require_once ' phpexcelreader/excel/reader.php '; $data =new spreadsheet_excel_reader (); $data->setoutputencoding ( ' GBK '); $data->read (' property. xls '); $sheet _name= ' drainage '; for ($sheet =0; $sheet
sheets); $sheet + +) {if ($data->boundsheets[$sheet] [' Name ']== $sheet _name) {break;}} echo $data->sheets[$sheet [' cells '][1][1];