【wordpress网站维护】Fatal error: Array and string offset access syntax with curly braces is no longer supported in

Fatal error: Array and string offset access syntax with curly braces is no longer supported in

致命错误:中不再支持带大括号的数组和字符串偏移量访问语法

错误代码行

这种解决方法有两种

第一种是降低PHP版本,PHP5.6可以完美使用

这是因为php7之后不再支持使用大括号访问数组以及字符串的偏移,

第二种是改代码

} elseif ($this->count == strlen($this->buffer) || $this->buffer{$this->count}(把红色部分的{}改为[]) == '}') {

标签

发表评论