MongoDB\BSON\ObjectID
PHP Manual

MongoDB\BSON\ObjectId::jsonSerialize

(mongodb >=1.2.0)

MongoDB\BSON\ObjectId::jsonSerializeReturns a representation that can be converted to JSON

Description

final public mixed MongoDB\BSON\ObjectId::jsonSerialize ( void )

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Returns data which can be serialized by json_encode() to produce the » extended JSON representation of the MongoDB\BSON\ObjectId.

Erreurs / Exceptions

Voir aussi


MongoDB\BSON\ObjectID
PHP Manual