get_resource_type()
function get_resource_type(resource $resource): string
Returns the type of a resource.
Parameters:
$resource(resource)
Returns: string
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how get_resource_type is implemented in the compiler, see the internals page.