private $_specialWhiteList = [
'table' => 'table|tbody|thead|tfoot|tr|td|th'
];
运行时老是报错syntax error, unexpected '['
该怎么解决啊?
private $_specialWhiteList = [
'table' => 'table|tbody|thead|tfoot|tr|td|th'
];
运行时老是报错syntax error, unexpected '['
该怎么解决啊?
4 回答972 阅读
1 回答653 阅读✓ 已解决
2 回答627 阅读
605 阅读
php版本太低,导致语法不兼容。
解决方法一、升级PHP到5.4以上
解决方法二、把
[]换成array()