php-PHPExcel中,把“= =”写入表格会出现错误,怎么解决呢?

WBOY
Release: 2016-06-02 11:27:58
Original
1326 people have browsed it

phpexcelphpexcel

提示的错误为:
Fatal error: Uncaught exception 'PHPExcel_Calculation_Exception' with message 'Worksheet!F42 -> Formula Error: Unexpected operator '='' in D:\wamp\www\PHPExcel\Cell.php on line 300
我是想把“= =”写进F42时报的错误。
使用的版本是PHPExcel1.8.0。
编码的语句为
$excel->getActiveSheet()->setCellValue("$letter$i","$value");

另外,经测试,在“= =”之前加入中文字符不会出现问题。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!