php last element of the array. code example
Example: php last element of the array.
<?php
// input array
$arr = array('Ram', 'Shita', 'Geeta');
// end function print the last
// element of the array.
echo end($arr);
?>
<?php
// input array
$arr = array('Ram', 'Shita', 'Geeta');
// end function print the last
// element of the array.
echo end($arr);
?>