reset
Set the internal pointer of an array to its first element
Syntax
reset ( array &$array ) : mixed
Parameters
array
The input array.
Return
Returns the value of the first array element, or FALSE if the array is empty.
Examples
<? $array = array('one', 'two', 'three', 'four'); echo end($array) . PHP_EOL; $return = reset($array); echo $return; ?>
four one