getHyperlink() - > getUrl()不工作phpexcel

时间:2015-07-03 14:17:26

标签: php hyperlink phpexcel phpexcelreader

我的代码:

$fileName = $_FILES['list']['tmp_name'];
$excelReader = PHPExcel_IOFactory::createReaderForFile($fileName);
$excelReader->setLoadAllSheets();
$excelObj = $excelReader->load($fileName);
$arr = array();
echo $excelObj->getActiveSheet()->getCell('B2')->getHyperlink()->getUrl();

如果单元格B2包含超链接。

0 个答案:

没有答案