Home >Backend Development >PHP Tutorial >PHP导出Excel方法

PHP导出Excel方法

WBOY
WBOYOriginal
2016-06-23 14:28:49978browse

简介:这是PHP导出Excel方法的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=337300' scrolling='no'>使用制表符、换行符的方法  
制表符”\t”用户分割同一行中的列,换行符”\t\n”可以开启下一行。  

<?php   header(”Content-Type: application/vnd.ms-execl”);   header(”Content-Disposition: attachment; filename=myExcel.xls”);   header(”Pragma: no-cache”);   header(”Expires: 0″);   /*first line*/   echo “hello”.”\t”;   echo “world”.”\t”;   echo “\t\n”;      /*start of second line*/   echo “this is second line”.”\t”;   echo “Hi,pretty girl”.”\t”;   echo “\t\n”;   ?>  

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/337300.html pageNo:9
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:配置php的redis扩展Next article:PHP 学习笔记 2011-06-29