src/PelTag.php
public static function getName($type, $tag)
    {
        switch ($type) {
            case PelIfd::IFD0:
            case PelIfd::IFD1:
            case PelIfd::EXIF:
            case PelIfd::INTEROPERABILITY:
                return self::getValue(self::$exifTagsShort, $tag);
            case PelIfd::GPS:
                return self::getValue(self::$gpsTagsShort, $tag);
            case PelIfd::CANON_MAKER_NOTES:
                return self::getValue(self::$canonTagsShort, $tag);
            case PelIfd::CANON_CAMERA_SETTINGS:
                return self::getValue(self::$canonCsTagsShort, $tag);
            case PelIfd::CANON_SHOT_INFO:
                return self::getValue(self::$canonSiTagsShort, $tag);
            case PelIfd::CANON_PANORAMA:
                return self::getValue(self::$canonPaTagsShort, $tag);
            case PelIfd::CANON_PICTURE_INFO:
                return self::getValue(self::$canonPiTagsShort, $tag);
            case PelIfd::CANON_FILE_INFO:
                return self::getValue(self::$canonFiTagsShort, $tag);
        }

        return self::unknownTag($tag);
    }
public static function getName($type, $tag)
    {
        switch ($type) {
            case PelIfd::IFD0:
            case PelIfd::IFD1:
            case PelIfd::EXIF:
            case PelIfd::INTEROPERABILITY:
                return self::getValue(self::$exifTagsShort, $tag);
            case PelIfd::GPS:
                return self::getValue(self::$gpsTagsShort, $tag);
            case PelIfd::CANON_MAKER_NOTES:
                return self::getValue(self::$canonTagsShort, $tag);
            case PelIfd::CANON_CAMERA_SETTINGS:
                return self::getValue(self::$canonCsTagsShort, $tag);
            case PelIfd::CANON_SHOT_INFO:
                return self::getValue(self::$canonSiTagsShort, $tag);
            case PelIfd::CANON_PANORAMA:
                return self::getValue(self::$canonPaTagsShort, $tag);
            case PelIfd::CANON_PICTURE_INFO:
                return self::getValue(self::$canonPiTagsShort, $tag);
            case PelIfd::CANON_FILE_INFO:
                return self::getValue(self::$canonFiTagsShort, $tag);
        }

        return self::unknownTag($tag);
    }
public static function getName ( $ type , $ tag ) { switch ( $ type ) { case PelIfd :: IFD0 : case PelIfd :: IFD1 : case PelIfd :: EXIF : case PelIfd :: INTEROPERABILITY : return self :: getValue ( self :: $ exifTagsShort , $ tag ) ; case PelIfd :: GPS : return self :: getValue ( self :: $ gpsTagsShort , $ tag ) ; case PelIfd :: CANON_MAKER_NOTES : return self :: getValue ( self :: $ canonTagsShort , $ tag ) ; case PelIfd :: CANON_CAMERA_SETTINGS : return self :: getValue ( self :: $ canonCsTagsShort , $ tag ) ; case PelIfd :: CANON_SHOT_INFO : return self :: getValue ( self :: $ canonSiTagsShort , $ tag ) ; case PelIfd :: CANON_PANORAMA : return self :: getValue ( self :: $ canonPaTagsShort , $ tag ) ; case PelIfd :: CANON_PICTURE_INFO : return self :: getValue ( self :: $ canonPiTagsShort , $ tag ) ; case PelIfd :: CANON_FILE_INFO : return self :: getValue ( self :: $ canonFiTagsShort , $ tag ) ; } return self :: unknownTag ( $ tag ) ; }
Returns a short name for an Exif tag.

@param int $type
the IFD type of the tag, one of {@link PelIfd::IFD0},
{@link PelIfd::IFD1}, {@link PelIfd::EXIF}, {@link PelIfd::GPS},
or {@link PelIfd::INTEROPERABILITY}.

@param int $tag
the tag.

@return string the short name of the tag, e.g., 'ImageWidth' for
the {@link IMAGE_WIDTH} tag. If the tag is not known, the string
'Unknown:0xTTTT' will be returned where 'TTTT' is the hexadecimal
representation of the tag.
Returns a short name for an Exif tag .