MongoDB\BSON\fromJSONReturns the BSON representation of a JSON value 警告
This function has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\BSON\Document::fromJSON instead. 説明
string MongoDB\BSON\fromJSON(string
$json)Converts an » extended JSON string to its BSON representation. パラメータ
戻り値The serialized BSON document as a binary string. エラー / 例外
変更履歴
例例1 MongoDB\BSON\fromJSON example 上の例の出力は以下となります。
object(stdClass)#2 (1) {
["_id"]=>
object(MongoDB\BSON\ObjectId)#1 (1) {
["oid"]=>
string(24) "563143b280d2387c91807965"
}
}
参考
|