How to get last element of an array?
17
May
2013

To get the last element use the end()
<?php $arr = array(‘php’, ‘online’, ‘tutorials’); echo end($arr);   ?>

 

  • 799 View
  • Pin It