« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 358 for document (0.001 sec.)
The MongoDB\BSON\Document class | PHP 8.3 8731
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 , Arr ... /* メソッド */ final private function __construct () final static public function fromBSON ( string $bson ): MongoDB\BSON\Document final static public function fromJSON ( string $json ): MongoDB\BSON\Document final static public function fromPHP ( objec ... t | array $value ): MongoDB\BSON\Document final public function get ( string $key ): mixed final public function getIterator (): MongoDB\BSON\Iterator final public ... lass no longer implements the Serializable interface. PECL mongodb 1.17.0 Implements MongoDB\BSON\Type . 目次 MongoDB\BSON\Document::__construct — Construct a new BSON document (unused) MongoDB\BSON\Document::fromBSON — Construct a new document instance ...
https://man.mtool.work/php/8.3/class.mongodb-bson-document.html
MongoDB\BSON\Document::fromBSON — Construct a new document instance from a BSON... 7537
MongoDB\BSON\Document::fromBSON (mongodb >=1.16.0) MongoDB\BSON\Document::fromBSON — Construct a new document instance from a BSON string 説明 final static public function MongoDB\BSON\Document::fromBSON ( string $bson ): MongoDB\BSON\Document ... ent パラメータ bson ( string ) A string containing a document in BSON format. 戻り値 Returns a new MongoDB\BSON\Document instance. エラー / 例外 Throws MongoDB\Driver\Exception\Invalid ... Throws MongoDB\Driver\Exception\UnexpectedValueException if bson is an invalid BSON string or contains more than a single document. 参考 MongoDB\BSON\Document::fromPHP() - Construct a new document instance from PHP data MongoDB\BSON\Document::fromJSON() ... - Construct a new document instance from a JSON string » BSON Types 他のマニュアルの関連ページ Docker MongoDB の Docker 化 ...
https://man.mtool.work/php/8.3/mongodb-bson-document.frombson.html
MongoDB\BSON\Document::fromPHP — Construct a new document instance from PHP dat... 7502
MongoDB\BSON\Document::fromPHP (mongodb >=1.16.0) MongoDB\BSON\Document::fromPHP — Construct a new document instance from PHP data 説明 final static public function MongoDB\BSON\Document::fromPHP ( object | array $value ): MongoDB\BSON\Document ... ment パラメータ value ( object | array ) A PHP object or array containing the document. When passing an array with numeric keys, the numeric values are converted to strings and used as document keys. 戻り値 Re ... turns a new MongoDB\BSON\Document instance. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 参考 MongoDB\ ... BSON\Document::fromBSON() - Construct a new document instance from a BSON string MongoDB\BSON\Document::fromJSON() - Construct a new doc ...
https://man.mtool.work/php/8.3/mongodb-bson-document.fromphp.html
MongoDB\BSON\Serializable::bsonSerialize — Provides an array or document to ser... 7475
MongoDB\BSON\Serializable::bsonSerialize (mongodb >=1.0.0) MongoDB\BSON\Serializable::bsonSerialize — Provides an array or document to serialize as BSON 説明 abstract public function MongoDB\BSON\Serializable::bsonSerialize (): array | stdC ... lass | MongoDB\BSON\Document | MongoDB\BSON\PackedArray Called during serialization of the object to BSON. The method must return an array , stdClass , ... MongoDB\BSON\Document , or MongoDB\BSON\PackedArray . Root documents (e.g. a MongoDB\BSON\Serializable passed to MongoDB\BSON\Document::fromPHP( ... ) ) will always be serialized as a BSON document. For field values, associative arrays and stdClass instances will be serialized as a BSON document and sequential arrays ( ...
https://man.mtool.work/php/8.3/mongodb-bson-serializable.bsonserialize.html
MongoDB\BSON\Document::__construct — Construct a new BSON document (unused) | P... 7448
MongoDB\BSON\Document::__construct (mongodb >=1.16.0) MongoDB\BSON\Document::__construct — Construct a new BSON document (unused) 説明 final private function MongoDB\BSON\Document::__construct () MongoDB\BSON\Document objects are created th ... tic factory methods and cannot be instantiated directly. パラメータ この関数にはパラメータはありません。 参考 MongoDB\BSON\Document::fromPHP() - Construct a new document instance from PHP data MongoDB\BSON\Document::fromBSON() - Construct a new document ... instance from a BSON string MongoDB\BSON\Document::fromJSON() - Construct a new document instance from a JSON string » BSON Types 他のマニュアルの関連ページ Docker MongoDB ...
https://man.mtool.work/php/8.3/mongodb-bson-document.construct.html
MongoDB\BSON\Document::fromJSON — Construct a new document instance from a JSON... 7386
MongoDB\BSON\Document::fromJSON (mongodb >=1.16.0) MongoDB\BSON\Document::fromJSON — Construct a new document instance from a JSON string 説明 final static public function MongoDB\BSON\Document::fromJSON ( string $json ): MongoDB\BSON\Document ... tring to its BSON representation. パラメータ json ( string ) JSON value to be converted. 戻り値 Returns a new MongoDB\BSON\Document instance. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. Throws MongoD ... B\Driver\Exception\UnexpectedValueException if the JSON value cannot be converted to a BSON document (e.g. due to a syntax error). 参考 MongoDB\BSON\Document::fromPHP() - Construct a new document instance from PHP data Mong ... oDB\BSON\Document::fromBSON() - Construct a new document instance from a BSON string » MongoDB Extended JSON » BSON Types 他のマニュアルの関 ...
https://man.mtool.work/php/8.3/mongodb-bson-document.fromjson.html
Serialization and deserialization of PHP variables into MongoDB | PHP 8.3 7386
Serialization and deserialization of PHP variables into MongoDB This document discusses how compound structures (i.e. documents, arrays, and objects) are converted between BSON and PHP values. Serialization to BSON Arrays If an array is a p ... i.e. having associative (string) keys, the keys don't start at 0, or when there are gaps:: BSON object A top-level (root) document, always serializes as a BSON document. Examples These serialize as a BSON array: [ 8, 5, 2, 3 ] => [ 8, 5, 2, 3 ] [ 0 => 4 ... , 1 => 9 ] => [ 4, 9 ] These serialize as a BSON document: [ 0 => 1, 2 => 8, 3 => 12 ] => { "0" : 1, "2" : 8, "3" : 12 } [ "foo" => 42 ] => { "foo" : 42 } [ 1 => 9, 0 => 10 ] => { ... "1" : 9, "0" : 10 } Note that the five examples are extracts of a full document, and represent only one value inside a document. Objects If an object is of the stdClass class, serialize as a BSON docume ...
https://man.mtool.work/php/8.3/mongodb.persistence.html
MongoDB\BSON\Document::get — Returns the value of a key in the document | PHP 8... 7270
MongoDB\BSON\Document::get (mongodb >=1.16.0) MongoDB\BSON\Document::get — Returns the value of a key in the document 説明 final public function MongoDB\BSON\Document::get ( string $key ): mixed パラメータ key ( string ) The key to retrieve ... from the document. 戻り値 Returns the value associated with the given key. If the key is not present in the document, an exception is thrown ... . 注意 : When encountering a value encoded as 64-bit integer in the BSON document, the return value of this method will be a MongoDB\BSON\Int64 instance. エラー / 例外 Throws MongoDB\Driver\Exception\Inva ... entException on argument parsing errors. Throws MongoDB\Driver\Exception\RuntimeException if the key is not present in the document. 参考 MongoDB\BSON\Document::has() - Returns whether a key is present in the document » BSON Types 他のマニュアルの関連ペー ...
https://man.mtool.work/php/8.3/mongodb-bson-document.get.html
MongoDB\BSON\Document::offsetGet — Returns the value of a key in the document |... 7270
MongoDB\BSON\Document::offsetGet (mongodb >=1.17.0) MongoDB\BSON\Document::offsetGet — Returns the value of a key in the document 説明 final public function MongoDB\BSON\Document::offsetGet ( mixed $key ): mixed パラメータ key The key to re ... trieve from the document. 戻り値 Returns the value associated with the given key. If the key is not present in the document, an exception is thrown ... . 注意 : When encountering a value encoded as 64-bit integer in the BSON document, the return value of this method will be a MongoDB\BSON\Int64 instance. エラー / 例外 Throws MongoDB\Driver\Exception\Inva ... entException on argument parsing errors. Throws MongoDB\Driver\Exception\RuntimeException if the key is not present in the document. 参考 ArrayAccess::offsetGet() - オフセットを取得する MongoDB\BSON\Document::get() - Returns the value of a key in the doc ...
https://man.mtool.work/php/8.3/mongodb-bson-document.offsetget.html
MongoDB\BSON\Persistable::bsonSerialize — Provides an array or document to seri... 7217
MongoDB\BSON\Persistable::bsonSerialize (mongodb >=1.0.0) MongoDB\BSON\Persistable::bsonSerialize — Provides an array or document to serialize as BSON 説明 abstract public function MongoDB\BSON\Persistable::bsonSerialize (): array | stdClas ... s | MongoDB\BSON\Document Called during serialization of the object to BSON. The method must return an array , stdClass , or MongoDB\BSON\Document . ... The return value will always be serialized as a BSON document. The serialized document will include a field containing the class name of the object. For this reason, it is not possible ... include an _id property (e.g. a MongoDB\BSON\ObjectId initialized in the constructor) when returning data for a BSON root document. In the absence of an _id property, the extension or server will generate a MongoDB\BSON\ObjectId for insert or upsert ope ...
https://man.mtool.work/php/8.3/mongodb-bson-persistable.bsonserialize.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT