how do I condense this statement?
<p>I have the following function:</p>

<pre><code>&lt;?php
class Test{
function myFunction(){
   return array('first','second','third'); 
}
}
?&gt;
</code></pre>

<p>And I can print out the elements of the array:</p>

<pre><code>$var=new Test();
$varr=$var-&gt;myFunction();
print($varr[1]);
</code></pre>

<p>Is there a way to condense this statement so I don't have to assign $var->myFunction() to a second variable (in this case $varr)?</p>
