Mongo Functions
PHP Manual

bson_encode

(PECL mongo >=1.0.1)

bson_encodeSerializes a PHP variable into a BSON string

Description

string bson_encode ( mixed $anything )

Parameters

anything

The variable to be serialized.

Return Values

Returns the serialized string.


Mongo Functions
PHP Manual