src/PelJpeg.php
public function insertSection($marker, PelJpegContent $content, $offset)
    {
        array_splice($this->sections, $offset, 0, [
            [
                $marker,
                $content
            ]
        ]);
    }
public function insertSection($marker, PelJpegContent $content, $offset)
    {
        array_splice($this->sections, $offset, 0, [
            [
                $marker,
                $content
            ]
        ]);
    }
public function insertSection ( $ marker , PelJpegContent $ content , $ offset ) { array_splice ( $ this -> sections , $ offset , 0 , [ [ $ marker , $ content ] ] ) ; }
Insert a new section.

Please use @{link setExif()} instead if you intend to add Exif
information to an image as that function will know the right
place to insert the data.

@param
PelJpegMarker the marker for the new section.

@param
PelJpegContent the content of the new section.

@param
int the offset where the new section will be inserted ---
use 0 to insert it at the very beginning, use 1 to insert it
between sections 1 and 2, etc.
Insert a new section .