- <?
- header("Content-type:application/vnd.ms-excel");
- header("Content-Disposition:filename=test.xls");
- echo "test1\t";
- echo "test2\t\n";
- echo "test1\t";
- echo "test2\t\n";
- echo "test1\t";
- echo "test2\t\n";
- echo "test1\t";
- echo "test2\t\n";
- echo "test1\t";
- echo "test2\t\n";
- echo "test1\t";
- echo "test2\t\n";
- ?>
来源: http://www.phpxs.com/code/1003134/