Home > DeveloperSection > Forums > php question
ashutosh singh
ashutosh singh

Total Post:7

Posted on    December-29-2015 7:02 AM

 PHP Phpdoc 

 1 Reply(s)
 284  View(s)
Rate this:
1.please tell me about mvc for php and lareval framework?
2. how to convert an html file to excel file using php script?

John Smith

Total Post:102

Posted on    December-29-2015 7:19 AM

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);

Don't want to miss updates? Please click the below button!

Follow MindStick