MongoDB\BSON\Document::fromBSON
(mongodb >=1.16.0)
MongoDB\BSON\Document::fromBSON — Construct a new document instance from a BSON string
説明
パラメータ
bson
(string)-
A string containing a document in BSON format.
戻り値
Returns a new MongoDB\BSON\Document instance.
エラー / 例外
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\UnexpectedValueException if
bson
is an invalid BSON string or contains more than a single document.
参考
- MongoDB\BSON\Document::fromPHP() - Construct a new document instance from PHP data
- MongoDB\BSON\Document::fromJSON() - Construct a new document instance from a JSON string
- » BSON Types
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google