is_resource

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a resource
<?php is_resource(mixed $value): bool
<?php     assert(isset($getopt['status-file']) && is_string($getopt['status-file']));

    $statusFile = fopen($getopt['status-file'], 'wb');

    assert(is_resource($statusFile));



    assert(isset($getopt['progress-file']) && is_string($getopt['progress-file']));

    assert(isset($getopt['unexpected-output-file']) && is_string($getopt['unexpected-output-file']));