array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'mongodb-bson-int64.jsonserialize.php', 1 => 'MongoDB\\BSON\\Int64::jsonSerialize', ), 'up' => array ( 0 => 'class.mongodb-bson-int64.php', 1 => 'MongoDB\\BSON\\Int64', ), 'prev' => array ( 0 => 'mongodb-bson-int64.construct.php', 1 => 'MongoDB\\BSON\\Int64::__construct', ), 'next' => array ( 0 => 'mongodb-bson-int64.serialize.php', 1 => 'MongoDB\\BSON\\Int64::serialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/int64/jsonserialize.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.5.0)
MongoDB\BSON\Int64::jsonSerialize — Returns a representation that can be converted to JSON
この関数にはパラメータはありません。
Returns data which can be serialized by json_encode() to produce an extended JSON representation of the MongoDB\BSON\Int64.
注意: The output is consistent with the MongoDB\BSON\toCanonicalExtendedJSON() function, which uses the » canonical extended JSON format. This differs from other BSON classes, which use the driver-specific legacy extended JSON format (MongoDB\BSON\toJSON()), in order to ensure that the 64-bit integer value is correctly represented on 32-bit platforms.