Is this a valid PHP statement?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/13109/php-access-array-value-on-the-fly">php: access array value on the fly</a>  </p>
</blockquote>



<p>Is this a valid PHP statement:</p>

<pre><code>mysql_fetch_array($result)['name']
</code></pre>

<p>Funny thing is that on my local host it works, but on the server it gives me syntax error, unexpected "["</p>
