respect-validation/docs/rules/ResourceType.md

37 lines
660 B
Markdown
Raw Normal View History

# ResourceType
2015-08-20 05:55:32 +02:00
- `ResourceType()`
2015-08-20 05:55:32 +02:00
Validates whether the input is a [resource](http://php.net/types.resource).
2015-08-20 05:55:32 +02:00
```php
v::resourceType()->validate(fopen('/path/to/file.txt', 'w')); // true
2015-08-20 05:55:32 +02:00
```
## Categorization
- Types
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
***
2015-08-20 05:55:32 +02:00
See also:
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)
2018-12-11 13:31:50 +01:00
- [PhpLabel](PhpLabel.md)
- [StringType](StringType.md)
2018-12-11 13:31:50 +01:00
- [StringVal](StringVal.md)
- [Type](Type.md)