$this->load->library('PHPExcel');
$this->load->library('PHPExcel/IOFactory');
$objIOFactory = new IOFactory();
$objPHPExcel = new PHPExcel();
$objPHPExcel->getProperties()->setTitle("title")->setDescription("description");
// Assign cell values
$objPHPExcel->setActiveSheetIndex(0);
$objPHPExcel->getActiveSheet()->setCellValue('A1', '的身份是得分');
// Save it as an excel 2003 file
$objWriter = $objIOFactory->createWriter($objPHPExcel, 'Excel5');
$objWriter->save('a.xls');