2015-01-30 09:40:06 +01:00
|
|
|
# NoWhitespace
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `NoWhitespace()`
|
2015-01-30 09:40:06 +01:00
|
|
|
|
|
|
|
Validates if a string contains no whitespace (spaces, tabs and line breaks);
|
|
|
|
|
|
|
|
```php
|
|
|
|
v::noWhitespace()->validate('foo bar'); //false
|
2015-10-20 02:53:25 +02:00
|
|
|
v::noWhitespace()->validate("foo\nbar"); // false
|
2015-01-30 09:40:06 +01:00
|
|
|
```
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
This is most useful when chaining with other validators such as `Alnum()`
|
2015-10-20 02:53:25 +02:00
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Strings
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
0.3.9 | Created
|
|
|
|
|
2015-10-20 02:53:25 +02:00
|
|
|
***
|
|
|
|
See also:
|
|
|
|
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Alnum](Alnum.md)
|
|
|
|
- [Alpha](Alpha.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [CreditCard](CreditCard.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [NotBlank](NotBlank.md)
|
|
|
|
- [NotEmpty](NotEmpty.md)
|
|
|
|
- [NotOptional](NotOptional.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Optional](Optional.md)
|