mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
18 lines
265 B
Markdown
18 lines
265 B
Markdown
# Numeric
|
|
|
|
- `v::numeric()`
|
|
|
|
Validates on any numeric value.
|
|
|
|
```php
|
|
v::numeric()->validate(-12); // true
|
|
v::numeric()->validate('135.0'); // true
|
|
```
|
|
|
|
***
|
|
See also:
|
|
|
|
* [Digit](Digit.md)
|
|
* [Finite](Finite.md)
|
|
* [Infinite](Infinite.md)
|
|
* [IntVal](IntVal.md)
|