mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 09:40:05 +02:00
00d300f762
Also: - Create documentation for `Base` rule; - Increase number of rules
763 B
763 B
BoolVal
BoolVal()
Validates if the input results in a boolean value:
v::boolVal()->validate('on'); // true
v::boolVal()->validate('off'); // true
v::boolVal()->validate('yes'); // true
v::boolVal()->validate('no'); // true
v::boolVal()->validate(1); // true
v::boolVal()->validate(0); // true
Changelog
Version | Description |
---|---|
1.0.0 | Created |
See also: