title: Calling PHP explode and access first element?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/742764/php-syntax-for-dereferencing-function-result">PHP syntax for dereferencing function result</a>  </p>
  </blockquote>
  
  
  
  <p>I have a string, which looks like <em>1234#5678</em>. Now I am calling this:</p>
  
  <pre><code>$last = explode("#", "1234#5678")[1]
  </code></pre>
  
  <p>Its not working, there is some syntax error...but where? What I expect is 5678 in <code>$last</code>. Is this not working in PHP?</p>