Mongo 函数
在线手册:中文 英文
PHP手册

bson_encode

(PECL mongo >=1.0.1)

bson_encodeSerializes a PHP variable into a BSON string

说明

string bson_encode ( mixed $anything )

This function is very beta and entirely useless for 99% of users. It is only useful if you're doing something weird, such as writing your own driver on top of the PHP driver.

参数

anything

The variable to be serialized.

返回值

Returns the serialized string.


Mongo 函数
在线手册:中文 英文
PHP手册