BSON\toJSON
BSON\Binary::__construct
BSON
PHP Manual

# The BSON\Binary class

(mongodb >=0.2.0)

## Introduction

## Class synopsis

BSON\Binary implements BSON\Type {
/* Constants */
const integer TYPE_GENERIC = 0 ;
const integer TYPE_FUNCTION = 1 ;
const integer TYPE_OLD_BINARY = 2 ;
const integer TYPE_OLD_UUID = 3 ;
const integer TYPE_UUID = 4 ;
const integer TYPE_MD5 = 5 ;
const integer TYPE_USER_DEFINED = 128 ;
/* Methods */
public __construct ( string `$data` , string `$subtype` )
public ReturnType getSubType ( void )
}

## Predefined Constants

`BSON\Binary::TYPE_GENERIC`

`BSON\Binary::TYPE_FUNCTION`

`BSON\Binary::TYPE_OLD_BINARY`

`BSON\Binary::TYPE_OLD_UUID`

`BSON\Binary::TYPE_UUID`

`BSON\Binary::TYPE_MD5`

`BSON\Binary::TYPE_USER_DEFINED`

## Table of Contents

- BSON\Binary::__construct — Description
- BSON\Binary::getSubType — Description

BSON\toJSON
BSON\Binary::__construct
BSON
PHP Manual