php generate excel document

WBOY
Release: 2016-07-25 09:10:08
Original
1130 people have browsed it
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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!