PHP function end()
Availability in PHP 4.0
Sets an internal pointer to the last element of the array, which it also returns.
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$array |
array |
not | The array. This array is passed by reference because it is modified by the function. This means you must pass it a real variable and not a function returning an array because only actual variables may be passed by reference. |
Return values
mixed or false
Returns the last element of the array, or false if it is empty.