exif_read_data

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Reads the EXIF headers from an image file
<?php exif_read_data(    resource|string $file,    ?string $required_sections = null,    bool $as_arrays = false,    bool $read_thumbnail = false): array|false
<?php                 $stream = $image->encode('data-url')->encoded;

            }



            $data = @exif_read_data($stream);



            if (!is_null($key) && is_array($data)) {

                $data = array_key_exists($key, $data) ? $data[$key] : false;