Documentation

BSONArray extends ArrayObject
in package
implements JsonSerializable, Serializable, Unserializable

Model class for a BSON array.

The internal data will be filtered through array_values() during BSON serialization to ensure that it becomes a BSON array.

Tags
template-extends

Table of Contents

Interfaces

JsonSerializable
Serializable
Unserializable

Methods

__clone()  : mixed
Clone this BSONArray.
__set_state()  : self
Factory method for var_export().
bsonSerialize()  : array<string|int, mixed>
Serialize the array to BSON.
bsonUnserialize()  : void
Unserialize the document to BSON.
jsonSerialize()  : array<string|int, mixed>
Serialize the array to JSON.

Methods

__clone()

Clone this BSONArray.

public __clone() : mixed

jsonSerialize()

Serialize the array to JSON.

public jsonSerialize() : array<string|int, mixed>

The array data will be numerically reindexed to ensure that it is stored as a JSON array.

Tags
see
https://php.net/jsonserializable.jsonserialize
Return values
array<string|int, mixed>

        
On this page

Search results