src/PelTag.php
public static function getTagByName($name)
    {
        $k = array_search($name, self::$exifTagsShort);
        if ($k !== false) {
            return $k;
        }

        $k = array_search($name, static::$gpsTagsShort);
        if ($k !== false) {
            return $k;
        }

        return array_search($name, self::$canonTagsShort);
    }
public static function getTagByName($name)
    {
        $k = array_search($name, self::$exifTagsShort);
        if ($k !== false) {
            return $k;
        }

        $k = array_search($name, static::$gpsTagsShort);
        if ($k !== false) {
            return $k;
        }

        return array_search($name, self::$canonTagsShort);
    }
public static function getTagByName ( $ name ) { $ k = array_search ( $ name , self :: $ exifTagsShort ) ; if ( $ k !== false ) { return $ k ; } $ k = array_search ( $ name , static :: $ gpsTagsShort ) ; if ( $ k !== false ) { return $ k ; } return array_search ( $ name , self :: $ canonTagsShort ) ; }
Reverse lookup of a tag id by its short name. Return false for the unknown tag name.

@deprecated Use getExifTagByName() and getGpsTagByName() to distinct the type of tag.

@param string $name
tag short name.

@return mixed (bool|int)
the tag.
Reverse lookup of a tag id by its short name . Return false for the unknown tag name .