$rules
$rules : array
Rule array.
Validation manager class.
The ValidationManager
class provides a flexible and extensible way to perform data
validation. This class allows you to define validation rules and validate data against
those rules.
$rules : array
Rule array.
validate(array$data, array > $rules, string $sessionName = 'errors') : array<string,mixed>
Validate data against a set of rules.
array |
$data | Holds an array of data to validate. |
array |
$rules | Holds an array of validation rules. |
string | $sessionName | Holds the session name for storing validation errors. |
if validation fails.
Return an array containing valid data.