title: CodeIgniter parse error: syntax error, unexpected '[' in ... user_controler.php
body: <p>I've been trying to run an existing CodeIgniter project that's been finished by a friend.  At his computer everything works just fine but when I try to run it on mine this message is shown in the browser:</p>
  
  <pre><code>Parse error: syntax error, unexpected "[" in C:\wamp\www\P-project\application\controllers\user_controler.php on line 88
  </code></pre>
  
  <p>This is the code on line 88:</p>
  
  <pre><code>  $data = [];
  </code></pre>
  
  <p>This is the code for  the function:</p>
  
  <pre><code>function Shownews(){
                  $this-&gt;load-&gt;model('user');
                  $data = [];
                  $data['news'] = $this-&gt;user-&gt;getNews();
          $this-&gt;load-&gt;vars($data);
      }
  </code></pre>
  
  <p>He's done it so the project URL is : </p>
  
  <pre><code>http://localhost/P-project/index.php/user_controler/log 
  </code></pre>
  
  <p>We're both using Wampserver for the connection and Netbeans for the project.</p>