← All built-ins / end()
end()
end(...$args): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $a | array | array |
Return value
The value of the last element.
Example
echo end([7, 8, 9]);
9
| Name | Type | Description |
|---|---|---|
| $a | array | array |
The value of the last element.
echo end([7, 8, 9]);
9