Skip to content

Kirby 4.4.1

V::errors()

Validates the given input with all passed rules and returns an array with all error messages.

V::errors($input, array $rules, array $messages = [ ]): array

Parameters

Name Type Default
$input * mixed
$rules * array
$messages array [ ]

Return type

array

Parent class

Kirby\Toolkit\V