PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

bson_decode

(PECL mongo >=1.0.1)

bson_decodeDeserializes a BSON object into a PHP array

Description

array bson_decode ( string $bson )

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.

Parameters

bson

The BSON to be deserialized.

Return Values

Returns the deserialized BSON object.

PHP Manual