title: Remove all items of an array except the last 5 on PHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6823236/remove-elements-from-array">Remove elements from array?</a>  </p>
  </blockquote>
  
  
  
  <p>how would I remove all array elements but last 5 ones? The array is a log, but the log will become extensive so I just want to see the five recent items (a.k.a. last five elements)</p>