CakePHP application displays Syntax error, unexpected [
问题 This is the error I'm receiving: Error: syntax error, unexpected '[' Line: 10 I'm running my cakephp app on a linux server ubuntu 3.7, it's cakephp 2.3.7 and PHP 5.3.1. Now, I'm running WAMP on EC2 after installing linux. On my localmachine I run XAMPP on Windows 7, and it does not get the same error. This is the code where it displays error: 10: <?php foreach ($this->Session->read('Customer')['Addresses'] as $key => $value) { 11: $ids[$z++] = $value['id']; 12: ?> ... Since it does not give