PHP 8.1.28 Released!


(mongodb >=1.16.0)

MongoDB\BSON\Document::fromJSONConstruct a new document instance from a JSON string


final static public MongoDB\BSON\Document::fromJSON(string $json): MongoDB\BSON\Document

Converts an » extended JSON string to its BSON representation.

Liste de paramètres

json (string)

JSON value to be converted.

Erreurs / Exceptions

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top