php8.5
Home/ Manual/ mongodb / bson/ The MongoDB\BSON\Symbol class

The MongoDB\BSON\Symbol class

BSON type for the "Symbol" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON symbol type while converting BSON to PHP, and can also be converted back into BSON while storing documents in the database.

Intro

BSON type for the "Symbol" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON symbol type while converting BSON to PHP, and can also be converted back into BSON while storing documents in the database.

Class synopsis

class MongoDB\BSON\Symbol { }

Changelog

VersionDescription
PECL mongodb 1.12.0Implements Stringable for PHP 8.0+.

Symbol

In this section

Source: reference/mongodb/bson/symbol.xml · from the official PHP manual (php/doc-en)