get_resource_type

Supported Versions: PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
Returns the resource type
<?php get_resource_type(resource $resource): string
<?php             if ($types[$parameter - 1] === static::$_paramTypeMap[ParameterType::LARGE_OBJECT]) {

                if (is_resource($value)) {

                    if (get_resource_type($value) !== 'stream') {

                        throw NonStreamResourceUsedAsLargeObject::new($parameter);

                    }