Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Checks if the object is of this class or has this class as one of its parents
is_a(mixed $object_or_classstring $classbool $allow_string false): bool
    public function isImagick()

    {

        return 
is_a($this->data'Imagick');

    }
    public function isInterventionImage()

    {

        return 
is_a($this->data'\Intervention\Image\Image');

    }
    public function isSplFileInfo()

    {

        return 
is_a($this->data'SplFileInfo');

    }
    public function isSymfonyUpload()

    {

        return 
is_a($this->data'Symfony\Component\HttpFoundation\File\UploadedFile');

    }
                $message '%s accepts only array as argument %d.';

                break;

            case 
'closure':

                
$valid is_a($value'\Closure');

                
$message '%s accepts only Closure as argument %d.';

                break;

            case 
'digit':
    public function initFromObject($value)

    {

        if (
is_a($value'\ImagickPixel')) {

            
$this->pixel $value;

        }

    }
        $mime finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), $data);

        
$length strlen($data);



        if (
function_exists('app') && is_a($app app(), 'Illuminate\Foundation\Application')) {



            
$response IlluminateResponse::make($data);

            
$response->header('Content-Type'$mime);