ALIAS

first()

ShortPHP reference for array_first().

Signature

array_first(array $array): mixed

Example

first(...);

PHP equivalent

array_first() is the canonical PHP function. ShortPHP provides first() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: filter()

Next: islist()

Back to reference