The MongoDB\BSON\Document class

(mongodb >=1.16.0)

ใฏใ˜ใ‚ใซ

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

ใ‚ฏใƒฉใ‚นๆฆ‚่ฆ

final class MongoDB\BSON\Document implements MongoDB\BSON\Type, ArrayAccess, IteratorAggregate {
/* ใƒกใ‚ฝใƒƒใƒ‰ */
final private __construct()
final static public fromBSON(string $bson): MongoDB\BSON\Document
final static public fromJSON(string $json): MongoDB\BSON\Document
final static public fromPHP(object|array $value): MongoDB\BSON\Document
final public get(string $key): mixed
final public has(string $key): bool
final public offsetExists(mixed $key): bool
final public offsetGet(mixed $key): mixed
final public offsetSet(mixed $key, mixed $value): void
final public offsetUnset(mixed $key): void
final public toPHP(?array $typeMap = null): array|object
final public __toString(): string
}

ๅค‰ๆ›ดๅฑฅๆญด

ใƒใƒผใ‚ธใƒงใƒณ ่ชฌๆ˜Ž
PECL mongodb 2.0.0

This class no longer implements the Serializable interface.

PECL mongodb 1.17.0 Implements MongoDB\BSON\Type.

็›ฎๆฌก

๏ผ‹add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top