MongoDB\BSON\Document::fromBSON

(mongodb >=1.16.0)

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

Description

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

Parameters

bson (string)

A string containing a document in BSON format.

Errors/Exceptions

See Also