PHP输出excel文件实例代码
来源:未知 责任编辑:智问网络 发表时间:2013-10-22 20:07 点击:次
PHP输出excel文件实例代码
- <?php
- header("Content-type:application/vnd.ms-excel");
- header("Content-Disposition:attachment;filename=users.xls" );
- echo "公司名称"." ";
- echo "用户名"." ";
- echo "密码"." ";
- echo "二级域名"." ";
- echo " ";
- foreach($result[result] as $val){
- echo "$val->ComName"." ";
- echo "$val->UserName"." ";
- echo "$val->UserTruePw"." ";
- echo emptyempty($val->DoMainName)?:(http://.$val->DoMainName..jiaomai.com)." ";
- echo " ";
- }
- ?>
相关新闻>>
- 发表评论
-
- 最新评论 更多>>