mime_content_type

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Detect MIME Content-type for a file
<?php mime_content_type(resource|string $filename): string|false
<?php         $this->assertEquals($gifCore->getImageMimeType(), 'image/gif');

        $image->save($save_as, null, 'jpg');



        $this->assertEquals(\mime_content_type($save_as), 'image/jpeg');

        @unlink($save_as);

    }