What is unexpected T_VARIABLE in PHP?

后端 未结 3 2052
悲&欢浪女
悲&欢浪女 2020-12-04 15:13

I get this PHP error:

Parse error: syntax error, unexpected T_VARIABLE

From this line:

$list[$i][$docinfo[\'at         


        
3条回答
  •  不思量自难忘°
    2020-12-04 15:30

    In my case it was an issue of the PHP version.

    The .phar file I was using was not compatible with PHP 5.3.9. Switching interpreter to PHP 7 did fix it.

提交回复
热议问题