protected function fillByteOrderMarks()
    {
        $this->byteOrderMarks = [
            self::UTF32_BIG_ENDIAN      => chr(0x00) . chr(0x00) . chr(0xFE) . chr(0xFF),
            self::UTF32_LITTLE_ENDIAN   => chr(0xFF) . chr(0xFE) . chr(0x00) . chr(0x00),
            self::UTF16_BIG_ENDIAN      => chr(0xFE) . chr(0xFF),
            self::UTF16_LITTLE_ENDIAN   => chr(0xFF) . chr(0xFE),
            self::UTF8                  => chr(0xEF) . chr(0xBB) . chr(0xBF)
        ];
    }
protected function fillByteOrderMarks()
    {
        $this->byteOrderMarks = [
            self::UTF32_BIG_ENDIAN      => chr(0x00) . chr(0x00) . chr(0xFE) . chr(0xFF),
            self::UTF32_LITTLE_ENDIAN   => chr(0xFF) . chr(0xFE) . chr(0x00) . chr(0x00),
            self::UTF16_BIG_ENDIAN      => chr(0xFE) . chr(0xFF),
            self::UTF16_LITTLE_ENDIAN   => chr(0xFF) . chr(0xFE),
            self::UTF8                  => chr(0xEF) . chr(0xBB) . chr(0xBF)
        ];
    }
protected function fillByteOrderMarks ( ) { $ this -> byteOrderMarks = [ self :: UTF32_BIG_ENDIAN => chr ( 0x00 ) . chr ( 0x00 ) . chr ( 0xFE ) . chr ( 0xFF ) , self :: UTF32_LITTLE_ENDIAN => chr ( 0xFF ) . chr ( 0xFE ) . chr ( 0x00 ) . chr ( 0x00 ) , self :: UTF16_BIG_ENDIAN => chr ( 0xFE ) . chr ( 0xFF ) , self :: UTF16_LITTLE_ENDIAN => chr ( 0xFF ) . chr ( 0xFE ) , self :: UTF8 => chr ( 0xEF ) . chr ( 0xBB ) . chr ( 0xBF ) ] ; }
Fill the boms with known marks
Fill the boms with known marks