mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 16:52:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
29 lines
406 B
Markdown
29 lines
406 B
Markdown
# Positive
|
|
|
|
- `Positive()`
|
|
|
|
Validates whether the input is a positive number.
|
|
|
|
```php
|
|
v::positive()->validate(1); // true
|
|
v::positive()->validate(0); // false
|
|
v::positive()->validate(-15); // false
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Math
|
|
- Numbers
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
2.0.0 | Does not validate non-numeric values
|
|
0.3.9 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Negative](Negative.md)
|