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

15 lines
179 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# Positive
- `v::positive()`
Validates if a number is higher than zero
```php
v::numeric()->positive()->validate(-15); // false
```
***
See also:
* [Negative](Negative.md)