private $_specialWhiteList = [
<code> 'table' => 'table|tbody|thead|tfoot|tr|td|th' ]; 运行时老是报错syntax error, unexpected '[' 该怎么解决啊? </code>
private $_specialWhiteList = [
<code> 'table' => 'table|tbody|thead|tfoot|tr|td|th' ]; 运行时老是报错syntax error, unexpected '[' 该怎么解决啊? </code>
The PHP version is too low, resulting in syntax incompatibility.
Solution 1: Upgrade PHP to 5.4 or above
Solution 2: Replace []
with array()