PHP syntax error, unexpected '['

I never had this happen before, but here we go:

在这里输入图片说明

Any ideas?

  • Running php-fpm 5.3
  • Ubuntu 12.04 (Precise Pangolin)
  • It looks as if the comment is NOT working...


    Using [] as arrays like that only works with PHP 5.4 and up.

    See PHP: Arrays

    You'll have to use old array syntax for PHP 5.3.

    This will work:

    Route::get('/', array('as' => 'default.index', 'uses' => 'DefaultController@index'));
    
    链接地址: http://www.djcxy.com/p/11952.html

    上一篇: PHP 5.3.10 vs PHP 5.5.3语法错误意外'''

    下一篇: PHP语法错误,意外的'['