1# Max
2
3- `v::max(mixed $maxValue)`
4- `v::max(mixed $maxValue, boolean $inclusive = true)`
5
6Validates if the input doesn't exceed the maximum value.
7
8```php
9v::intVal()->max(15)->validate(20); // false
10v::intVal()->max(20)->validate(20); // false
11v::intVal()->max(20, true)->validate(20); // true
12```
13
14Also accepts dates:
15
16```php
17v::date()->max('2012-01-01')->validate('2010-01-01'); // true
18```
19
20Also date intervals:
21
22```php
23// Same of minimum age validation
24v::date()->max('-18 years')->validate('1988-09-09'); // true
25```
26
27`true` may be passed as a parameter to indicate that inclusive
28values must be used.
29
30Message template for this validator includes `{{maxValue}}`.
31
32***
33See also:
34
35  * [Min](Min.md)
36  * [Between](Between.md)
37