title: Parse error: syntax error, unexpected '['
body: <p>I'm having some weird problem right now.
  So apparently, there have been problems with my MySQL PDO drivers, as well as with my Apache server, so I had it reinstalled.
  But now, this parse error suddenly appeared after I had done that:</p>
  
  <pre><code>Parse error: syntax error, unexpected '[' on line 5
  </code></pre>
  
  <p>Well, this is the code on line 5:</p>
  
  <pre><code>return array_map(function ($val) { return explode('.', $val)[0]; }, scandir(DIR . M_DIR));
  </code></pre>
  
  <p>I seriously don't get this. And it seems like no matter what I try to do in order to fix this error -- it remains effective.
  Help?</p>