(PECL mongo >= 0.8.1)
Creates a new binary data object.
public MongoBinData::__construct ( string $data [, int $type = 0 ] )
Creates a new binary data object.
There are seven types of binary data currently recognized by the BSON spec, which are defined as class constants. For backwards compatibility, the PHP driver uses MongoBinData::BYTE_ARRAY as the default; however, this may change to MongoBinData::GENERIC in the fu