v::resourceType()
Validates if the input is a resource.
v::resourceType()->validate(fopen('/path/to/file.txt', 'w')); //true
See also: