array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'mongodb-bson-decimal128.jsonserialize.php', 1 => 'MongoDB\\BSON\\Decimal128::jsonSerialize', ), 'up' => array ( 0 => 'class.mongodb-bson-decimal128.php', 1 => 'MongoDB\\BSON\\Decimal128', ), 'prev' => array ( 0 => 'mongodb-bson-decimal128.construct.php', 1 => 'MongoDB\\BSON\\Decimal128::__construct', ), 'next' => array ( 0 => 'mongodb-bson-decimal128.serialize.php', 1 => 'MongoDB\\BSON\\Decimal128::serialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/mongodb/bson/decimal128/jsonserialize.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.2.0)
MongoDB\BSON\Decimal128::jsonSerialize — Retourne une représentation qui peut être convertie en JSON
Cette fonction ne contient aucun paramètre.
Retourne des données qui peuvent être sérialisées par json_encode() pour produire une représentation JSON étendue de MongoDB\BSON\Decimal128.
Note: La sortie est cohérente avec la fonction MongoDB\BSON\toJSON(), qui utilise le format JSON étendu spécifique au pilote. Cela ne correspond pas nécessairement aux représentations JSON étendues » décontractées ou » canoniques utilisées par MongoDB\BSON\toRelaxedExtendedJSON() et MongoDB\BSON\toCanonicalExtendedJSON(), respectivement.