respect-validation/docs/TrueVal.md
Henrique Moody 66027b85a5 Documentation improvements
- Add a space after comments with `//`;
- Add missing "See also" sections in some files
2015-10-19 22:55:05 -02:00

21 lines
436 B
Markdown

# TrueVal
- `v::trueVal()`
Validates if a value is considered as `true`.
```php
v::trueVal()->validate(true); // true
v::trueVal()->validate(1); // true
v::trueVal()->validate('1'); // true
v::trueVal()->validate('true'); // true
v::trueVal()->validate('on'); // true
v::trueVal()->validate('yes'); // true
v::trueVal()->validate('0.5'); // false
v::trueVal()->validate('2'); // false
```
***
See also:
* [FalseVal](FalseVal.md)