Skip to content

Kirby 3.5.7.1

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