<code>parse error :syntax error,unexpected '[' ············</code>
Later I used array
If you want to use
<code>$config=[ ]</code>
In this case, are there any requirements for the version?
<code>parse error :syntax error,unexpected '[' ············</code>
Later I used array
If you want to use
<code>$config=[ ]</code>
In this case, are there any requirements for the version?
Look at the documentation. Since 5.4, you can use the short array definition syntax and use [] to replace the array() address
Paste the complete config file...
<code><?php return $config = [ //..... ];</code>
If it looks like the above...there is no problem...
Check it out:
What’s new in PHP 5.3, 5.4, 5.5, 5.6