respect-validation/docs/rules/Control.md

31 lines
459 B
Markdown
Raw Normal View History

# Control
2015-01-30 09:40:06 +01:00
- `Control()`
- `Control(string ...$additionalChars)`
2015-01-30 09:40:06 +01:00
Validates if all of the characters in the provided string, are control
characters.
2015-01-30 09:40:06 +01:00
```php
v::control()->validate("\n\r\t"); // true
2015-01-30 09:40:06 +01:00
```
## Categorization
- Strings
## Changelog
Version | Description
--------|-------------
2.0.0 | Renamed from `Cntrl` to `Control`
0.5.0 | Created
***
2015-01-30 09:40:06 +01:00
See also:
- [Alnum](Alnum.md)
- [Printable](Printable.md)
2018-12-11 13:31:50 +01:00
- [Punct](Punct.md)
- [Space](Space.md)