Returns the string representation of this BSON Document

# MongoDB\BSON\Document::__toString

(mongodb >=1.16.0)

MongoDB\BSON\Document::__toString — Returns the string representation of this BSON Document

### Description

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

### Parameters

This function has no parameters.

### Return Values

Returns the string representation of this document as BSON.

### See Also

- » BSON Types

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open