Skip to content

Kirby 3.5.7.1

A::get()

Gets an element of an array by key

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

Parameters

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

Return type

mixed

Parent class

Kirby\Toolkit\A