title: PHP - Parse error: syntax error, unexpected '[' - associative array
body: <p>I wrote a code that worked perfectly fine, but then I reinstalled my operating system, and now  when I try to run this, I keep getting this error. I am using IIS 8.0, WebMatrix, and PHP 5.3. </p>
  
  <p>This is the piece of code in question:</p>
  
  <pre><code>&lt;?php 
       if (!$me-&gt;get_details()['quote']) : //&lt;--error is here
  ?&gt;
       &lt;p class="quote"&gt;Write some motivational quote.&lt;/p&gt;
  &lt;?php
       else :
  ?&gt;
       &lt;p class="quote"&gt;&lt;?= $me-&gt;get_details()['quote']?&gt;&lt;/p&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Function get_details() returns an associative array with data from the database.</p>
  
  <p>What could possibly go wrong here?</p>