MongoDB\BSON\Document::fromBSON
PHP Manual
PHP Manual»MongoDB\BSON\Document»MongoDB\BSON\Document::fromBSON

MongoDB\BSON\Document::fromBSON

(mongodb >=1.16.0)

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

Опис

final static public function 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.

Помилки/виключення

Прогляньте також

To Top