Dutch PHP Conference 2025 - Call For Papers

La classe MongoDB\BSON\Symbol

(mongodb >=1.4.0)

Introduction

Type BSON pour le type "Symbol". Ce type BSON est déprécié, et cette classe ne peut pas être instanciée. Elle sera créée à partir d'un type symbol BSON lors de la conversion BSON en PHP, et peut également être convertie en BSON lors du stockage de documents dans la base de données.

Synopsis de la classe

final class MongoDB\BSON\Symbol implements MongoDB\BSON\Type, Serializable, JsonSerializable, Stringable {
/* Méthodes */
final private __construct()
final public jsonSerialize(): mixed
final public serialize(): string
final public __toString(): string
final public unserialize(string $data): void
}

Historique

Version Description
PECL mongodb 1.12.0 Implémente Stringable pour PHP 8.0+.

Sommaire

add a note

User Contributed Notes

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