Complete PHP Array Reference
The end() function moves the internal pointer to, and outputs, the last element in the array.
This function returns the value of the last element in the array on success.
| Parameter | Description |
|---|---|
| array | Required. Specifies the array to use |
The output of the code above will be:
Complete PHP Array Reference
Your message has been sent to W3Schools.