respect-validation/docs/rules/No.md
Henrique Moody a009286ba6
Update "See also" section in the rules's documentation
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-11 13:19:52 +01:00

531 B

No

  • v::no()
  • v::no(boolean $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.


See also: