respect-validation/docs/rules/Consonant.md
2018-12-11 13:31:50 +01:00

25 lines
437 B
Markdown

# Consonant
- `Consonant()`
- `Consonant(string ...$additionalChars)`
Similar to `Alnum()`. Validates strings that contain only consonants:
```php
v::consonant()->validate('xkcd'); // true
```
## Changelog
Version | Description
--------|-------------
0.5.0 | Renamed from `Consonants` to `Consonant`
0.3.9 | Created as `Consonants`
***
See also:
- [Alnum](Alnum.md)
- [Alpha](Alpha.md)
- [Digit](Digit.md)
- [Vowel](Vowel.md)