Skip to content

Kirby 3.8.4

V::value()

Validate a single value against a set of rules, using all registered validators

V::value(mixed $value, array $rules, array $messages = [ ], bool $fail = true): bool|array

Parameters

Name Type Default
$value * mixed
$rules * array
$messages array [ ]
$fail bool true

Return type

bool|array

Parent class

Kirby\Toolkit\V