Fulfilling documentation request for numeric array validation

This commit is contained in:
Mark Cahill 2018-02-05 07:15:00 -05:00
parent 1712b04f16
commit fd1b55ad21

View File

@ -86,6 +86,19 @@ if($v->validate()) {
}
```
Or use dot syntax to validate all members of a numeric array:
```php
$v = new Valitron\Validator(array('values' => array(50, 90)));
$v->rule('max', 'values.*', 100);
if($v->validate()) {
echo "Yay! We're all good!";
} else {
// Errors
print_r($v->errors());
}
```
Setting language and language dir globally:
```php