Results of 1 - 10 of about 24 for fromPHP (0.005 sec.)
- MongoDB\BSON\fromPHP — Returns the BSON representation of a PHP value | PHP 8.3 14478
- MongoDB\BSON\fromPHP (mongodb >=1.0.0) MongoDB\BSON\fromPHP — Returns the BSON representation of a PHP value 警告 This function has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\BSON\
... Document::fromPHP() instead. 説明 function MongoDB\BSON\fromPHP ( array | object $value ): string Serializes a PHP array or object (e.g. doc ... o return an array or stdClass . 変更履歴 バージョン 説明 PECL mongodb 2.0.0 This function was removed. 例 例1 MongoDB\BSON\fromPHP() example <?php $bson = MongoDB\BSON\fromPHP ([ 'foo' => 1 ]); echo bin2hex ( $bson ), "\n" ; ?> 上の例の出力は以下となりま ... す。 0e00000010666f6f000100000000 参考 MongoDB\BSON\Document::fromPHP() - Construct a new document instance from PHP data MongoDB\BSON\toPHP() - Returns the PHP representation of a BSON value ...
-
https://man.mtool.work/php/8.3/function.mongodb.bson-fromphp.html
- MongoDB\BSON\PackedArray::fromPHP — Construct a new BSON array instance from PH... 10592
- MongoDB\BSON\PackedArray::fromPHP (mongodb >=1.16.0) MongoDB\BSON\PackedArray::fromPHP — Construct a new BSON array instance from PHP data 説明 final static public function MongoDB\BSON\PackedArray::fromPHP ( array $value ): MongoDB\BSON\Pa
...
-
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.fromphp.html
- MongoDB\BSON\Document::fromPHP — Construct a new document instance from PHP dat... 10491
- 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\Docu
...
-
https://man.mtool.work/php/8.3/mongodb-bson-document.fromphp.html
- MongoDB\BSON\Serializable::bsonSerialize — Provides an array or document to ser... 10208
- 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
... 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 seri ... ; } function bsonSerialize (): array { return [ '_id' => $this -> id , 'foo' => 'bar' ]; } } echo MongoDB\BSON\Document :: fromPHP (new MyDocument )-> toRelaxedExtendedJSON (), "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 { "_id" : { "$oid" ... nts MongoDB\BSON\Serializable { function bsonSerialize (): array { return [ 1 , 2 , 3 ]; } } echo MongoDB\BSON\Document :: fromPHP (new MyArray )-> toRelaxedExtendedJSON (), "\n" ; ?> 上の例の出力は以下となります。 { "0" : 1, "1" : 2, "2" : 3 } 例3 Mong ...
-
https://man.mtool.work/php/8.3/mongodb-bson-serializable.bsonserialize.html
- MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON seria... 9040
- MongoDB\Driver\ReadPreference::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\ReadPreference::bsonSerialize (): stdClass パラ
... ce ( MongoDB\Driver\ReadPreference :: PRIMARY ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (1) { ["mode"]=> ... [ 'dc' => 'sf' , 'use' => 'reporting' ], [] ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> ... ARY , null , [ 'maxStalenessSeconds' => 120 ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
- MongoDB\Driver\ReadConcern::bsonSerialize — Returns an object for BSON serializ... 8757
- MongoDB\Driver\ReadConcern::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\ReadConcern::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\ReadConcern::bsonSerialize (): stdClass パラメータ こ
... ern <?php $rc = new MongoDB\Driver\ReadConcern ; var_dump ( $rc -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rc )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (0) { } { } 例2 ... Concern ( MongoDB\Driver\ReadConcern :: LOCAL ); var_dump ( $rc -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rc )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (1) { ["level"]= ...
-
https://man.mtool.work/php/8.3/mongodb-driver-readconcern.bsonserialize.html
- MongoDB\Driver\WriteConcern::bsonSerialize — Returns an object for BSON seriali... 8557
- MongoDB\Driver\WriteConcern::bsonSerialize (mongodb >=1.2.0) MongoDB\Driver\WriteConcern::bsonSerialize — Returns an object for BSON serialization 説明 final public function MongoDB\Driver\WriteConcern::bsonSerialize (): stdClass パラメータ
... ern ( MongoDB\Driver\WriteConcern :: MAJORITY ); var_dump ( $wc -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $wc )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (1) { ["w"]=> st ... MongoDB\Driver\WriteConcern ( 2 , 1000 , true ); var_dump ( $wc -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $wc )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (3) { ["w"]=> in ...
-
https://man.mtool.work/php/8.3/mongodb-driver-writeconcern.bsonserialize.html
- The MongoDB\BSON\PackedArray class | PHP 8.3 8356
- The MongoDB\BSON\PackedArray class (mongodb >=1.16.0) はじめに Represents a BSON array. This class is used when reading data as raw BSON and cannot be modified. クラス概要 final class MongoDB\BSON\PackedArray implements MongoDB\BSON\Type ,
... construct () final static public function fromJSON ( string $json ): MongoDB\BSON\PackedArray final static public function fromPHP ( array $value ): MongoDB\BSON\PackedArray final public function get ( int $key ): mixed final public function getIterator ... sed) MongoDB\BSON\PackedArray::fromJSON — Construct a new BSON array instance from a JSON string MongoDB\BSON\PackedArray::fromPHP — Construct a new BSON array instance from PHP data MongoDB\BSON\PackedArray::get — Returns the value of an index in the a ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-packedarray.html
- The MongoDB\BSON\Document class | PHP 8.3 8273
- 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
... B\BSON\Document final static public function fromJSON ( string $json ): MongoDB\BSON\Document final static public function fromPHP ( object | array $value ): MongoDB\BSON\Document final public function get ( string $key ): mixed final public function ge ... BSON string MongoDB\BSON\Document::fromJSON — Construct a new document instance from a JSON string MongoDB\BSON\Document::fromPHP — Construct a new document instance from PHP data MongoDB\BSON\Document::get — Returns the value of a key in the document ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-document.html
- MongoDB\BSON\PackedArray::__construct — Construct a new BSON array (unused) | P... 7973
- MongoDB\BSON\PackedArray::__construct (mongodb >=1.16.0) MongoDB\BSON\PackedArray::__construct — Construct a new BSON array (unused) 説明 final private function MongoDB\BSON\PackedArray::__construct () MongoDB\BSON\PackedArray objects are c
... ethods and cannot be instantiated directly. パラメータ この関数にはパラメータはありません。 参考 MongoDB\BSON\PackedArray::fromPHP() - Construct a new BSON array instance from PHP data » BSON Types 他のマニュアルの関連ページ Docker MongoDB の Docker 化 ...
-
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.construct.html