make "$arr = Foo::bar(); $v = $arr[$i]" into one line of code
<p>I run into a special situation that needs to make</p>

<pre><code>$arr = Foo::bar();
$v = $arr[$i]
</code></pre>

<p>into one line of code. <code>$v = Foo::bar()[$i]</code> is not working.</p>
