PHPExcel library code example
Example: phpexcel
// Create phpExcel sheet, sheet 1, get active sheet
$this->PhpExcel->createSheet(1);
$this->PhpExcel->setActiveSheetIndex(1);
$sheet = $this->PhpExcel->getActiveSheet();
// Create phpExcel sheet, sheet 1, get active sheet
$this->PhpExcel->createSheet(1);
$this->PhpExcel->setActiveSheetIndex(1);
$sheet = $this->PhpExcel->getActiveSheet();