mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 08:42:15 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
914 B
914 B
Digit
Digit()
Digit(string ...$additionalChars)
Validates whether the input contains only digits.
v::digit()->validate('020 612 1851'); // false
v::digit(' ')->validate('020 612 1851'); // true
v::digit()->validate('172.655.537-21'); // false
v::digit('.', '-')->validate('172.655.537-21'); // true
Categorization
- Numbers
- Strings
Changelog
Version | Description |
---|---|
2.0.0 | Removed support to whitespaces by default |
0.5.0 | Renamed from Digits to Digit |
0.3.9 | Created as Digits |
See also: