Home >Backend Development >PHP Tutorial >php generate excel document

php generate excel document

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-25 09:10:081204browse
php generate excel document
  1. header("Content-type:application/vnd.ms-excel");
  2. header("Content-Disposition:filename=test.xls");
  3. echo "test1t";
  4. echo " test2tn";
  5. echo "test1t";
  6. echo "test2tn";
  7. echo "test1t";
  8. //PHP open source code
  9. echo "test2tn";
  10. echo "test1t";
  11. echo "test2tn";
  12. echo "test1t" ;
  13. echo "test2tn";
  14. echo "test1t";
  15. echo "test2tn";
  16. //Change the corresponding file header to output .doc, .xls and other file formats
  17. ?>
Copy the code


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