Skip to content

Kirby 4.5.0

A::first()

Returns the first element of an array

A::first(array $array): mixed|null

Parameters

Name Type Default Description
$array * array The source array

Return type

mixed|null

Parent class

Kirby\Toolkit\A