Skip to content

Kirby 4.4.1

V::value()

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

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

Parameters

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

Return type

array|bool

Parent class

Kirby\Toolkit\V