There is a project that needs to introduce the PHPExcel class library to generate the excel table document. When writing the test sample, there is no problem. But when I introduce my project, all the errors will be reported in the PHPExcel library. I just wrote dephpexcel. {code...} after the PHP File ...} "-& amp; gt; & quot; always prompts syntaxerrorunexp...
A project needs to introduce the PHPExcel class library to generate an excel table document.
There is no problem when writing the test sample.
However, when I introduce my project, all errors will be reported for the entire PHPExcel library,
After I include the PHPExcel. php file
// Set propertiesecho date('H:i:s') . " Set properties\n";$objPHPExcel->getProperties()->setCreator("Maarten Balliauw");$objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw");$objPHPExcel->getProperties()->setTitle("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.");
"->" Always prompts syntax error unexpected '->'
What is the situation and how to solve it?
Reply content:
A project needs to introduce the PHPExcel class library to generate an excel table document.
There is no problem when writing the test sample.
However, when I introduce my project, all errors will be reported for the entire PHPExcel library,
After I include the PHPExcel. php file
// Set propertiesecho date('H:i:s') . " Set properties\n";$objPHPExcel->getProperties()->setCreator("Maarten Balliauw");$objPHPExcel->getProperties()->setLastModifiedBy("Maarten Balliauw");$objPHPExcel->getProperties()->setTitle("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setSubject("Office 2007 XLSX Test Document");$objPHPExcel->getProperties()->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.");
"->" Always prompts syntax error unexpected '->'
What is the situation and how to solve it?