public static function encodeFirstByte($major, $additional)
    {
        $first_byte = ($major & MajorType::BIT_MASK) | ($additional & AdditionalType::BIT_MASK);
        return pack(PackFormat::UINT_8, $first_byte);
    }
public static function encodeFirstByte($major, $additional)
    {
        $first_byte = ($major & MajorType::BIT_MASK) | ($additional & AdditionalType::BIT_MASK);
        return pack(PackFormat::UINT_8, $first_byte);
    }
public static function encodeFirstByte ( $ major , $ additional ) { $ first_byte = ( $ major & MajorType :: BIT_MASK ) | ( $ additional & AdditionalType :: BIT_MASK ) ; return pack ( PackFormat :: UINT_8 , $ first_byte ) ; }
Constructs the first byte of a CBOR data type, using the major type and additional information.

@param int $major The major type to use.
@param int $additional The additional type to use.
@return string The encoded byte string.
Constructs the first byte of a CBOR data type using the major type and additional information .