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

The MongoDB\BSON\PackedArray class

Represents a BSON array. This class is used when reading data as raw BSON and cannot be modified.

Intro

Represents a BSON array. This class is used when reading data as raw BSON and cannot be modified.

Class synopsis

class MongoDB\BSON\PackedArray { }

Changelog

VersionDescription
PECL mongodb 1.17.0Implements MongoDB\BSON\Type.
PECL mongodb 1.17.0MongoDB\BSON\PackedArray cannot be serialized in contexts where a BSON document is expected. In earlier versions, the BSON array would have been converted to a document.

Packedarray

In this section

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