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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-02 11:27:581388browse

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

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

Statement:
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