src/PelJpeg.php
public function getSection($marker, $skip = 0)
    {
        foreach ($this->sections as $s) {
            if ($s[0] == $marker) {
                if ($skip > 0) {
                    $skip --;
                } else {
                    return $s[1];
                }
            }
        }

        return null;
    }
public function getSection($marker, $skip = 0)
    {
        foreach ($this->sections as $s) {
            if ($s[0] == $marker) {
                if ($skip > 0) {
                    $skip --;
                } else {
                    return $s[1];
                }
            }
        }

        return null;
    }
public function getSection ( $ marker , $ skip = 0 ) { foreach ( $ this -> sections as $ s ) { if ( $ s [ 0 ] == $ marker ) { if ( $ skip > 0 ) { $ skip -- ; } else { return $ s [ 1 ] ; } } } return null ; }
Get a section corresponding to a particular marker.

Please use the {@link getExif()} if you just need the Exif data.

This will search through the sections of this JPEG object,
looking for a section identified with the specified {@link
PelJpegMarker marker}. The {@link PelJpegContent content} will
then be returned. The optional argument can be used to skip over
some of the sections. So if one is looking for the, say, third
{@link PelJpegMarker::DHT DHT} section one would do:

<code>
$dht3 = $jpeg->getSection(PelJpegMarker::DHT, 2);
</code>

@param
PelJpegMarker the marker identifying the section.

@param
int the number of sections to be skipped. This must be a
non-negative integer.

@return PelJpegContent the content found, or null if there is no
content available.
Get a section corresponding to a particular marker .