MongoDB\BSON\Document::serialize

(mongodb >=1.16.0)

MongoDB\BSON\Document::serializeSerialize a Document

Description

final public MongoDB\BSON\Document::serialize(): string

Parameters

This function has no parameters.

Return Values

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

Errors/Exceptions

See Also