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     public function isGdResource()

    {

        if (is_resource($this->data)) {

            return (get_resource_type($this->data) == 'gd');

        }



        if ($this->data instanceof \GdImage) {
<?php     {

        if ($this->data instanceof StreamInterface) return true;

        if (!is_resource($this->data)) return false;

        if (get_resource_type($this->data) !== 'stream') return false;



        return true;

    }
<?php         $img->backup();

        $img->destroy();


        $this->assertEquals(get_resource_type($img->getCore()), 'Unknown');


        $this->assertEquals(get_resource_type($img->getBackup()), 'Unknown');

    }
<?php         $this->assertEquals(get_resource_type($img->getCore()), 'Unknown');


        $this->assertEquals(get_resource_type($img->getBackup()), 'Unknown');

    }



    public function testStringConversion()