<?php

 header("Content-type:application/vnd.ms-excel");
 header("Content-Dispotion:filename='test.xls' ");


 echo "a\t b\t c\n";
 echo "aa\t bb\t cc\n";
 echo "aaa\t bbb\t cccc\n";

<table width="500" border=1>
   <tr><td colspan=2>测试excel</td></tr> 
   <tr>
          <td>编号</td>
          <td>姓名</td>
   </tr> 
   <tr>
          <td>1</td>
          <td>one</td>
    </tr> 
   <tr>
          <td>2</td>
          <td>two</td>
    </tr> 
   <tr>
          <td>=A3+A4</td>
          <td>=SUM(B3:B4)</td>
    </tr> 
</table>
?>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-07-11
  • 2021-08-27
  • 2021-11-23
  • 2021-12-19
  • 2021-11-16
猜你喜欢
  • 2021-07-26
  • 2022-01-02
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
相关资源
相似解决方案