PHP Find the last element of an array – PHP April 14, 2011 Pramod T P Leave a comment <?php $testData= array('Test1', 'Test2', 'Test3'); echo end($testData); // Test3 ?>