travel/service/vendor/mk-j/php_xlsxwriter/examples/ex12-hyperlink.php

16 lines
427 B
PHP
Raw Normal View History

2024-06-24 11:28:18 +08:00
<?php
set_include_path( get_include_path().PATH_SEPARATOR."..");
include_once("xlsxwriter.class.php");
$rows = array(
array("not clickable","also not clickable",'=HYPERLINK("http://github.com", "Click for Github.com")'),
);
$writer = new XLSXWriter();
foreach($rows as $row)
$writer->writeSheetRow('Sheet1', $row);
$writer->writeToFile('xlsx-hyperlink.xlsx');
//$writer->writeToStdOut();
//echo $writer->writeToString();