mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
14 lines
179 B
Markdown
14 lines
179 B
Markdown
# Positive
|
|
|
|
- `v::positive()`
|
|
|
|
Validates if a number is higher than zero
|
|
|
|
```php
|
|
v::numeric()->positive()->validate(-15); // false
|
|
```
|
|
|
|
***
|
|
See also:
|
|
|
|
* [Negative](Negative.md)
|