Javascript debugger Website design ↑
end() advances array's internal pointer to the last element, and returns its value.
<?php $fruits = array('apple', 'banana', 'cranberry'); echo end($fruits); // cranberry ?>
See also current(), each(), prev(), next() and reset().
Javascript debugger Website design