src/PelJpegMarker.php
public static function getDescription($marker)
    {
        if (array_key_exists($marker, self::$jpegMarkerShort)) {
            if (array_key_exists($marker, self::$jpegMarkerDescriptions)) {
                return self::$jpegMarkerDescriptions[$marker];
            } else {
                $splitted = preg_split(
                    "/(\d+)/",
                    self::$jpegMarkerShort[$marker],
                    - 1,
                    PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE
                );
                if ((count($splitted) == 2) && array_key_exists($splitted[0], self::$jpegMarkerDescriptions)) {
                    return Pel::fmt(self::$jpegMarkerDescriptions[$splitted[0]], $splitted[1]);
                }
            }
        }
        return Pel::fmt('Unknown marker: 0x%02X', $marker);
    }
public static function getDescription($marker)
    {
        if (array_key_exists($marker, self::$jpegMarkerShort)) {
            if (array_key_exists($marker, self::$jpegMarkerDescriptions)) {
                return self::$jpegMarkerDescriptions[$marker];
            } else {
                $splitted = preg_split(
                    "/(\d+)/",
                    self::$jpegMarkerShort[$marker],
                    - 1,
                    PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE
                );
                if ((count($splitted) == 2) && array_key_exists($splitted[0], self::$jpegMarkerDescriptions)) {
                    return Pel::fmt(self::$jpegMarkerDescriptions[$splitted[0]], $splitted[1]);
                }
            }
        }
        return Pel::fmt('Unknown marker: 0x%02X', $marker);
    }
public static function getDescription ( $ marker ) { if ( array_key_exists ( $ marker , self :: $ jpegMarkerShort ) ) { if ( array_key_exists ( $ marker , self :: $ jpegMarkerDescriptions ) ) { return self :: $ jpegMarkerDescriptions [ $ marker ] ; } else { $ splitted = preg_split ( "/(\d+)/" , self :: $ jpegMarkerShort [ $ marker ] , - 1 , PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ) ; if ( ( count ( $ splitted ) == 2 ) && array_key_exists ( $ splitted [ 0 ] , self :: $ jpegMarkerDescriptions ) ) { return Pel :: fmt ( self :: $ jpegMarkerDescriptions [ $ splitted [ 0 ] ] , $ splitted [ 1 ] ) ; } } } return Pel :: fmt ( 'Unknown marker: 0x%02X' , $ marker ) ; }
Returns a description of a JPEG marker.

@param integer $marker
the marker as defined in {@link PelJpegMarker}

@return string
Returns a description of a JPEG marker .