Gibt es in PHP ähnliche Detektionen für Resource-Variablen wie für Objekte?

In PHP, you can use the `get_resource_type()` function to check if a variable is a resource type. This function returns the type of the given resource. You can use this function to determine if a variable is a resource or not.

$resource = fopen('example.txt', 'r');

if (get_resource_type($resource) === 'stream') {
    echo 'Variable is a resource type';
} else {
    echo 'Variable is not a resource type';
}