用PHPExcel导入数据,获取超链接的方法

1 if ($PHPExcel->getActiveSheet()->getCell('A1')->hasHyperlink()){ 
2     $url = $PHPExcel->getActiveSheet()->getCell('A1')->getHyperlink()->getUrl();
3 }else{
4     $url = '';
5 }

 

转载于:https://www.cnblogs.com/davelvking/p/11506571.html

    原文作者:are7438
    原文地址: https://blog.csdn.net/are7438/article/details/101461948
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞