validation_check

Check all inputs according to the validation rules provided

Parameters
array $validations

The array of the validation rules

#
array $data = []

The optional data array (if no value in $validation, it will be looked up in $data)

#
string $type = Validation::TYPE_MULTI

The return form of the error message: "multi" to return all error messages occurred; "single" to return the first error message occurred

#
Returns
bool