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.

Interfaces, Classes, Traits and Enums

JsonSerializable
Serializable
Unserializable

Table of Contents

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

Methods

__clone()

Clone this BSONArray.

public __clone() : mixed
Return values
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
http://php.net/jsonserializable.jsonserialize
Return values
array<string|int, mixed>

Search results