Answers for "last element of array using loop php"

PHP
2

php last item of array

echo end(['Gon', 'Killua', 'Hisoka']) // print Hisoka
Posted by: Guest on January-31-2021
0

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); 
  
?>
Posted by: Guest on June-06-2021

Code answers related to "last element of array using loop php"

Browse Popular Code Answers by Language