respect-validation/docs/StringType.md

30 lines
517 B
Markdown
Raw Normal View History

2015-10-07 16:52:03 +02:00
# StringType
- `StringType()`
2015-10-07 16:52:03 +02:00
Validates a string.
```php
v::stringType()->validate('hi'); // true
2015-10-07 16:52:03 +02:00
```
## Changelog
Version | Description
--------|-------------
1.0.0 | Renamed from `String` to `StringType`
0.3.9 | Created as `String`
2015-10-07 16:52:03 +02:00
***
See also:
* [Alnum](Alnum.md)
* [BoolType](BoolType.md)
* [CallableType](CallableType.md)
* [FloatType](FloatType.md)
* [IntType](IntType.md)
* [NullType](NullType.md)
* [ObjectType](ObjectType.md)
* [ResourceType](ResourceType.md)
* [Type](Type.md)