以他带的示例文件为例 01simple-download-xls.php
// Add some data
$objPHPExcel->setActiveSheetIndex(0)
->setCellValue(‘A1‘, iconv(‘gbk‘, ‘utf-8‘, ‘中文Hello‘))
->setCellValue(‘B2‘, ‘world!‘)
->setCellValue(‘C1‘, ‘Hello‘)
->setCellValue(‘D2‘, ‘world!‘);
时间: 2024-11-09 03:28:43