Is there any way to access an element of the resulting array directly after calling explode() function in PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5781360/interpreting-return-value-of-function-directly-as-an-array">Interpreting return value of function directly as an array</a>  </p>
</blockquote>



<p>Is there any way to access an element of the resulting array directly after calling explode() function in PHP?</p>

<p>e.g.:</p>

<pre><code>echo explode('-', 'a-b-c')[1];
</code></pre>

<p>would return <code>b</code></p>
