开发者

On how to use phpexcel reader

开发者 https://www.devze.com 2023-04-05 16:20 出处:网络
How can I get the values from a cell using php reader..开发者_开发知识库 All of those tutorials in the internet just generates errors in my code and I can\'t find a reliable site to help me.

How can I get the values from a cell using php reader..开发者_开发知识库 All of those tutorials in the internet just generates errors in my code and I can't find a reliable site to help me.

Example I have cell Name and under it are names... How can I get the names and store them in an array? Any help would be appreciated, Thanks!


require_once '../Classes/PHPExcel/IOFactory.php';

$objPHPExcel = PHPExcel_IOFactory::load("yourfile.xlsx");


$value = $objPHPExcel->getActiveSheet()->getCell('A1')->getValue();

echo 'The Value is: '.$value;
0

精彩评论

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