php生成excl

<?php
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:attachment;filename=youExcel.xls");


echo "name"."\t"."age"."\t\n"; //标题 \t:单元格  \t\n:换行
echo "johnny"."\t"."13"."\t\n";







?>

  

你可能感兴趣的:(PHP)