PHP 8.4.0 RC4 available for testing

MongoDB\BSON\Document::fromJSON

(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.

パラメータ

json (string)

JSON value to be converted.

戻り値

Returns a new MongoDB\BSON\Document instance.

エラー / 例外

参考

add a note

User Contributed Notes

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