Skip to content

Kirby 6.0.0

V::required()

Checks if the value is present

V::required(mixed $value, mixed $array = null): bool

Parameters

Name Type Default
$valuerequired mixed no default value
$array mixed null

Return type

bool

Parent class

Kirby\Toolkit\V