end Set the internal pointer of an array to its last element : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

end Set the internal pointer of an array to its last element



<?php
$fruits = array("apple""orange""banana");
print_r($fruits);
$fruit = current($fruits)// returns "apple"
echo "Current: $fruit<br />";
$fruit = end($fruits)// returns "banana"
echo "End: $fruit<br />";
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function