Skip to content

Kirby 3.8.4

A::get()

Gets an element of an array by key

A::get(array $array, array|string|int|null $key, mixed $default = null)

Parameters

Name Type Default Description
$array * array The source array
$key * array|string|int|null The key to look for
$default mixed null Optional default value, which
should be returned if no element
has been found

Parent class

Kirby\Toolkit\A