PHP use function return value as array
<p>Why is it that this works:</p>

<pre><code>        $cacheMatchesNotPlayed = $cache-&gt;load('externalData');
        $cacheMatchesNotPlayed = $cacheMatchesNotPlayed['matchesNotPlayed'];
</code></pre>

<p>But this doesn't work:</p>

<pre><code>        $cacheMatchesNotPlayed = $cache-&gt;load('externalData')['matchesNotPlayed'];
</code></pre>

<p>Is there some reason for it? The second bit is easier to write.</p>
