Reference

Guide

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

Source code

kirby/src/Toolkit/A.php#L61