title: Shortcut for getting an item from a returned array at particular index/key?
body: <p>I feel like there is some way of doing this with a shortcut:</p>
  
  <pre><code>$date_array = explode("-", $date);
  $day = $date_array[2];
  </code></pre>
  
  <p>Something like:</p>
  
  <pre><code>$day = explode("-", $date)[2];
  </code></pre>
  
  <p>Basically getting the answer and setting it to something?</p>
  
  <p>Can't remember, but aren't there a bunch of fancy "=" things like <code>.=</code> concatenation. Are there other shortcuts like that? Can't seem to find an article on Google with all the shortcuts.</p>
  
  <p>I hate having to make a <code>$date_array</code> when all I honestly want is the <code>$day</code>, makes me feel like my code isn't efficient.</p>
  
  <p>EDIT: Changed the title to be more universal, can't think of anything great.</p>