PHP output excel file example code
- header("Content-type:application/vnd.ms-excel") ;
- header("Content-Disposition:attachment;filename=users.xls" );
- echo "Company name"." ";
- echo "Username" ." ";
- echo "Password"." ";
";
- foreach($result[result] as $val){
- echo "$val->ComName"."; >UserName"." ";
- echo "$val->UserTruePw"." ";
- echo emptyempty($val->DoMainName)?:(http:// .$val->DoMainName..jiaomai.com)." ";
- echo "
";
- }
- ?>
-
-
-
-
http://www.bkjia.com/PHPjc/486142.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/486142.htmlTechArticlePHP output excel file example code?php header("Content-type:application/vnd.ms-excel") ; header("Content-Disposition:attachment;filename=users.xls" ); echo "Company name".""; echo "Use...
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