php question

1.please tell me about mvc for php and lareval framework?
2. how to convert an html file to excel file using php script?
 
Last updated:12/29/2015 7:19:38 AM

1 Answers

John Smith
John Smith

To Convert HTML file to Excel File:

$inputFileType = 'HTML';
$inputFileName = './HtmlFile.html';
$outputFileName = './ExcelFile.xlsx';
$outputFileType = 'Excel2007';


$objPHPExcelReader = PHPExcel_IOFactory::createReader($inputFileType);
$objPHPExcel = $objPHPExcelReader->load($inputFileName);

$objPHPExcelWriter = PHPExcel_IOFactory::createWriter($objPHPExcel,$outputFileType);
$objPHPExcel = $objPHPExcelWriter->save($outputFileName);

Answer