ALIAS

last()

ShortPHP reference for array_last().

Signature

array_last(array $array): mixed

Example

last(...);

PHP equivalent

array_last() is the canonical PHP function. ShortPHP provides last() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: keys()

Next: map()

Back to reference