作者:xaony23625 | 来源:互联网 | 2023-09-18 19:19
篇首语:本文由编程笔记#小编为大家整理,主要介绍了PHP 可下载的Excel文件与PHP相关的知识,希望对你有一定的参考价值。
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
header ("Content-type: application/x-msexcel");
header ("Content-Disposition: attachment; filename=\"prueba.xls\"" );
echo "uno\tdos\ttres\tcuatro\tcinco\tseis\t\n";
echo "siete\tocho\tnueve\tdiez\tonce\t4\t\n";
echo "doce\ttrece\tcatorce\tquince\t46\tah\t\n";
?>