← All built-ins / end()

end()

end(...$args): mixed

Parameters

NameTypeDescription
$aarrayarray

Return value

The value of the last element.

Example

echo end([7, 8, 9]);
9

See also

reset()array_key_last()