开发者

listWorksheetNames() is giving incorrect result

开发者 https://www.devze.com 2023-03-16 08:10 出处:网络
$objReader = PHPExcel_IOFac开发者_如何学Gotory::createReader(\'Excel2007\'); $worksheet_names = $objReader->listWorksheetNames($input_file);
$objReader = PHPExcel_IOFac开发者_如何学Gotory::createReader('Excel2007');
$worksheet_names = $objReader->listWorksheetNames($input_file);
print_r($worksheet_names);

some times it is printing

Array
(
    [0] => test0
)

some times it is printing Array ( [0] => test0 [1] => test1 [2] =>test2 )

there are total 3 sheets in my excel file..test0, test1, test2

any idea why it is happening?

0

精彩评论

暂无评论...
验证码 换一张
取 消