使用php将数据导入excel的简单方法

版权声明:本文为博主原创文章,拒绝相同的垃圾博文。 https://blog.csdn.net/tsummerb/article/details/76981436

<1>添加header头来实现导入

<?php
    header("Content-type:application/vnd.ms-excel");
    header("Content-Disposition:filename=test.xls");
    echo "001"."\t"."tb"."\n";
    echo "002"."\t"."wh"."\n";
?>


猜你喜欢

转载自blog.csdn.net/tsummerb/article/details/76981436