mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
15 lines
204 B
Markdown
15 lines
204 B
Markdown
# Resource
|
|
|
|
- `v::resource()`
|
|
|
|
Validates if the input is a resource.
|
|
|
|
```php
|
|
v::resource()->validate(fopen('/path/to/file.txt', 'w')); //true
|
|
```
|
|
|
|
***
|
|
See also:
|
|
|
|
* [Type](Type.md)
|
|
* [Digit](Digit.md)
|