MongoDB\BSON\ObjectId
PHP Manual

MongoDB\BSON\ObjectId::serialize

(mongodb >=1.2.0)

MongoDB\BSON\ObjectId::serializeSerialize an ObjectId

Description

final public string MongoDB\BSON\ObjectId::serialize ( void )

Parameters

This function has no parameters.

Return Values

Returns the serialized representation of the MongoDB\BSON\ObjectId.

Errors/Exceptions

See Also


MongoDB\BSON\ObjectId
PHP Manual