mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 07:15:45 +01:00
594 B
594 B
No
No()No(bool $locale)
Validates if value is considered as "No".
v::no()->validate('N'); // true
v::no()->validate('Nay'); // true
v::no()->validate('Nix'); // true
v::no()->validate('No'); // true
v::no()->validate('Nope'); // true
v::no()->validate('Not'); // true
This rule is case insensitive.
If $locale is TRUE, uses the value of nl_langinfo() with NOEXPR constant.
Changelog
| Version | Description |
|---|---|
| 0.7.0 | Created |
See also: