I use Dreamweaver to edit but it still doesn't work.
phpcn_u13074
phpcn_u13074 2017-08-03 10:35:17
0
2
1046

If you open it with Excel, it will be garbled.

phpcn_u13074
phpcn_u13074

reply all(2)
Ty80
<?php
$dir=dirname(__FILE__);
require $dir."/PHPExcel.php";
$objPHPExcel=new PHPExcel();
$objSheet=$objPHPExcel->getActiveSheet();
$objSheet->setTitle("demo");
//$objSheet->setCellValue("A1","可可")->setCellValue("b1","蛋蛋");
$array=array(
array("姓名","年龄"),
array("大可","58")
);
$objSheet->fromArray($array);
$objWriter=PHPExcel_IOFactory::createWriter($objPHPExcel,"Excel5");
$objWriter = new PHPExcel_Writer_Excel5($objPHPExcel);
 
header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="ch3.xls"');
header('Cache-Control: max-age=0');
$objWriter->save("php://output");


正念的奇迹

This? What does that mean?


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template