PHPExcel - How to set a url

前端 未结 4 787
Happy的楠姐
Happy的楠姐 2021-02-04 06:53

I am isung PHPExcel and have a URL in a string. When doing:

$url = \'http://dx.doi.org/10.1016/j.phymed.2005.11.003\'
$xls = new PHPExcel();
$xls->setActiveSh         


        
4条回答
  •  抹茶落季
    2021-02-04 07:10

    Try to write your code as below line:

    $objSheet->setCellValue('A1', '=Hyperlink("https://www.someurl.com/","Mi web")');

提交回复
热议问题