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

The MongoDB\BSON\Undefined class

BSON type for the "Undefined" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON undefined 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 "Undefined" type. This BSON type is deprecated, and this class can not be instantiated. It will be created from a BSON undefined 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\Undefined { }

Changelog

VersionDescription
PECL mongodb 1.12.0Implements Stringable for PHP 8.0+.

Undefined

In this section

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