2015-10-07 16:52:03 +02:00
|
|
|
# StringType
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `StringType()`
|
2015-10-07 16:52:03 +02:00
|
|
|
|
2018-03-09 15:42:45 +01:00
|
|
|
Validates whether the type of an input is string or not.
|
2015-10-07 16:52:03 +02:00
|
|
|
|
|
|
|
```php
|
2015-10-20 02:53:25 +02:00
|
|
|
v::stringType()->validate('hi'); // true
|
2015-10-07 16:52:03 +02:00
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Strings
|
|
|
|
- Types
|
|
|
|
|
2017-03-27 22:04:13 +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:
|
|
|
|
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Alnum](Alnum.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [ArrayType](ArrayType.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [BoolType](BoolType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [BoolVal](BoolVal.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [CallableType](CallableType.md)
|
|
|
|
- [FloatType](FloatType.md)
|
|
|
|
- [IntType](IntType.md)
|
|
|
|
- [NullType](NullType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Number](Number.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [ObjectType](ObjectType.md)
|
|
|
|
- [ResourceType](ResourceType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [ScalarVal](ScalarVal.md)
|
|
|
|
- [StringVal](StringVal.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Type](Type.md)
|