Skip to content

Kirby 3.8.4

$body->get()

The get method is the heart and soul of this Trait. You can use it to fetch a single value of the data array by key or multiple values by passing an array of keys.

$body->get(array|string $key, $default = null)

Parameters

Name Type Default
$key * array|string
$default mixed null

Parent class

Kirby\Http\Request\Body