Between
Checks for numbers within a given range
-
return (boolean)
In your code
if(v::between($input, 5, 20)) {
echo 'Yay, valid!';
}
In fields
fields:
example:
label: Example field
type: text
validate:
between:
- 5
- 20