MongoDB\BSON\Document::fromBSON

(mongodb >=1.16.0)

MongoDB\BSON\Document::fromBSONConstruct a new document instance from a BSON string

说明

final static public MongoDB\BSON\Document::fromBSON(string $bson): MongoDB\BSON\Document

参数

bson (string)

A string containing a document in BSON format.

返回值

Returns a new MongoDB\BSON\Document instance.

错误/异常

参见