-
-
header("Content-type:application/vnd.ms-excel"); - header("content-Disposition:filename=downloaded.pdf ");< /p>
echo "1t 2t 3n"; //where t is blank and n is carriage return (encoding specifications cannot be output directly)
- echo "1t 2t 3n";
- echo "1t 2t 3n";
- ?>
-
-
Copy the code
When you open this php file, you will be prompted to download it.
It can also be output in the form of a table;
-
- header("Content-type:application/vnd.ms-excel ");
- header("content-Disposition:filename=downloaded.pdf");
- ?>
- < ;table>
-
-
t00 | t01 | t02 |
-
-
- < td>t10
t11 | t12 |
-
-
-
t20 | | t22 |
-
-
|