MongoDB\BSON\fromJSONReturns the BSON representation of a JSON value 説明
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
<?php 上の例の出力は以下となります。 object(stdClass)#2 (1) { ["_id"]=> object(MongoDB\BSON\ObjectId)#1 (1) { ["oid"]=> string(24) "563143b280d2387c91807965" } } 参考
|