GoLang bson_encode

request it (103)
GoLang replacement for PHP's bson_encode [edit | history]

Do you know a GoLang replacement for PHP's bson_encode? Write it!

PHP bson_encode

PHP original manual for bson_encode [ show | php.net ]


(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.



The variable to be serialized.

Return Values

Returns the serialized string.