respect-validation/docs/rules/StringType.md

40 lines
704 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 whether the type of an input is string or not.
2015-10-07 16:52:03 +02:00
```php
v::stringType()->validate('hi'); // true
2015-10-07 16:52:03 +02:00
```
## Categorization
- Strings
- Types
## 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)
2018-12-11 13:31:50 +01:00
- [ArrayType](ArrayType.md)
- [BoolType](BoolType.md)
2018-12-11 13:31:50 +01:00
- [BoolVal](BoolVal.md)
- [CallableType](CallableType.md)
- [FloatType](FloatType.md)
- [IntType](IntType.md)
- [NullType](NullType.md)
2018-12-11 13:31:50 +01:00
- [Number](Number.md)
- [ObjectType](ObjectType.md)
- [ResourceType](ResourceType.md)
2018-12-11 13:31:50 +01:00
- [ScalarVal](ScalarVal.md)
- [StringVal](StringVal.md)
- [Type](Type.md)