php: accessing a value from a returned associative array
<p>I have a function <code>getStatus()</code> that returns an associative array.</p>

<p>Right now I'm accessing a value with two commands:</p>

<pre><code>$a = $user-&gt;getStatus();
$a = $a['keyName'];
doSomething($a);
</code></pre>

<p>Is there a way to rephrase that into one command like:</p>

<pre><code>doSomething($user-&gt;getStatus()['keyName']);
</code></pre>
