tao-test/app/vendor/respect/validation/docs/rules/No.md

27 lines
531 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# No
- `v::no()`
- `v::no(boolean $locale)`
Validates if value is considered as "No".
```php
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()](http://php.net/nl_langinfo) with `NOEXPR` constant.
***
See also:
* [BoolType](BoolType.md)
* [BoolVal](BoolVal.md)
* [Yes](Yes.md)