PHP Doku:: Creates a new binary data object. - mongobindata.construct.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverTypesThe MongoBinData classMongoBinData::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoBinData class

<<The MongoBinData class

MongoBinData::__toString>>

MongoBinData::__construct

(PECL mongo >= 0.8.1)

MongoBinData::__constructCreates a new binary data object.

Beschreibung

public MongoBinData::__construct ( string $data [, int $type ] )

Creates a new binary data object.

There are five types of binary data currently recognized by the BSON spec: function (0x01), byte array (0x02), UUID (0x03), MD5 (0x05), and user defined (0x80). The default type is byte array (0x02). There is no particular difference in how the driver or server interpret different types, so by and large they are irrelevant for now. Any number (between 0 and 255) could be used for type, if the user is willing to assume the risk that the database might eventually do something with binary data based on type.

Parameter-Liste

data

Binary data.

type

Data type.

Rückgabewerte

Returns a new binary data object.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)