title: Getting a reference to the last item of an array
body: <p>I can use the following to get the value of the last item of <code>$array</code>. How can I get a reference to that item?</p>
  
  <pre><code>$last_item = end($array);
  </code></pre>
  
  <p>The items of <code>$array</code> are indexed arrays.</p>