« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 28 for toRelaxedExtendedJSON (0.001 sec.)
MongoDB\BSON\PackedArray::toRelaxedExtendedJSON — Returns the Relaxed Extended ... 13977
MongoDB\BSON\PackedArray::toRelaxedExtendedJSON (mongodb >=1.20.0) MongoDB\BSON\PackedArray::toRelaxedExtendedJSON — Returns the Relaxed Extended JSON representation of the BSON array 説明 final public function MongoDB\BSON\PackedArray::toRelaxedExtendedJSON ... Returns a string containing the » Relaxed Extended JSON representation of the BSON array. 例 例1 MongoDB\BSON\PackedArray::toRelaxedExtendedJSON() example <?php $array = [ 'foo' , 123 , 4294967295 , new MongoDB\BSON\ObjectId ( '56315a7c6118fd1b920270b1' ), ]; $packed ... Array = MongoDB\BSON\PackedArray :: fromPHP ( $array ); echo $packedArray -> toRelaxedExtendedJSON (), "\n" ; ?> 上の例の出力は以下となります。 [ "foo", 123, 4294967295, { "$oid" : "56315a7c6118fd1b920270b1" } ] 参考 Mong ... PackedArray::toCanonicalExtendedJSON() - Returns the Canonical Extended JSON representation of the BSON array MongoDB\BSON\toRelaxedExtendedJSON() - Returns the Relaxed Extended JSON representation of a BSON value » Extended JSON Specification » BSON Types 他のマニュ ...
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.torelaxedextendedjson.ht...
MongoDB\BSON\toRelaxedExtendedJSON — Returns the Relaxed Extended JSON represen... 11437
MongoDB\BSON\toRelaxedExtendedJSON (mongodb >=1.3.0) MongoDB\BSON\toRelaxedExtendedJSON — Returns the Relaxed Extended JSON representation of a BSON 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::toRelaxedExtendedJSON() instead. 説明 function MongoDB\BSON\toRelaxedExtendedJSON ( string $bson ): string Converts a BSON string to its » Relax ... an unexpected » libbson error. 変更履歴 バージョン 説明 PECL mongodb 2.0.0 This function was removed. 例 例1 MongoDB\BSON\toRelaxedExtendedJSON() example <?php $documents = [ [ 'null' => null ], [ 'boolean' => true ], [ 'string' => 'foo' ], [ 'int32' => 123 ], [ 'in ... goDB\BSON\MaxKey ], ]; foreach ( $documents as $document ) { $bson = MongoDB\BSON\fromPHP ( $document ); echo MongoDB\BSON\toRelaxedExtendedJSON ( $bson ), "\n" ; } ?> 上の例の出力は以下となります。 { "null" : null } { "boolean" : true } { "string" : "foo" } { "int32 ...
https://man.mtool.work/php/8.3/function.mongodb.bson-torelaxedextendedjson.html
MongoDB\BSON\Document::toRelaxedExtendedJSON — Returns the Relaxed Extended JSO... 10831
MongoDB\BSON\Document::toRelaxedExtendedJSON (mongodb >=1.16.0) MongoDB\BSON\Document::toRelaxedExtendedJSON — Returns the Relaxed Extended JSON representation of the BSON document 説明 final public function MongoDB\BSON\Document::toRelaxedExtendedJSON ... Returns a string containing the » Relaxed Extended JSON representation of the BSON document. 例 例1 MongoDB\BSON\Document::toRelaxedExtendedJSON() example <?php $documents = [ [ 'null' => null ], [ 'boolean' => true ], [ 'string' => 'foo' ], [ 'int32' => 123 ], [ 'in ... N\MaxKey ], ]; foreach ( $documents as $document ) { $bson = MongoDB\BSON\Document :: fromPHP ( $document ); echo $bson -> toRelaxedExtendedJSON (), "\n" ; } ?> 上の例の出力は以下となります。 { "null" : null } { "boolean" : true } { "string" : "foo" } { "int32" : 123 ... Document::toCanonicalExtendedJSON() - Returns the Canonical Extended JSON representation of the BSON document MongoDB\BSON\toRelaxedExtendedJSON() - Returns the Relaxed Extended JSON representation of a BSON value » Extended JSON Specification » BSON Types 他のマニュ ...
https://man.mtool.work/php/8.3/mongodb-bson-document.torelaxedextendedjson.html
MongoDB\BSON\Serializable::bsonSerialize — Provides an array or document to ser... 8897
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 ... ): array { return [ '_id' => $this -> id , 'foo' => 'bar' ]; } } echo MongoDB\BSON\Document :: fromPHP (new MyDocument )-> toRelaxedExtendedJSON (), "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 { "_id" : { "$oid" : "56cccdcada14d8755a58c591" }, "foo" : " ... able { function bsonSerialize (): array { return [ 1 , 2 , 3 ]; } } echo MongoDB\BSON\Document :: fromPHP (new MyArray )-> toRelaxedExtendedJSON (), "\n" ; ?> 上の例の出力は以下となります。 { "0" : 1, "1" : 2, "2" : 3 } 例3 MongoDB\BSON\Serializable::bsonSerialize() ... turn [ 'foo' => 'bar' ]; } } $value = [ 'document' => new MyDocument ]; echo MongoDB\BSON\Document :: fromPHP ( $value )-> toRelaxedExtendedJSON (), "\n" ; ?> 上の例の出力は以下となります。 { "document" : { "foo" : "bar" } } 例4 MongoDB\BSON\Serializable::bsonSeriali ...
https://man.mtool.work/php/8.3/mongodb-bson-serializable.bsonserialize.html
MongoDB\BSON\toJSON — Returns the Legacy Extended JSON representation of a BSON... 8668
MongoDB\BSON\toJSON (mongodb >=1.0.0) MongoDB\BSON\toJSON — Returns the Legacy Extended JSON representation of a BSON value 警告 This function has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should us ... e MongoDB\BSON\Document::toCanonicalExtendedJSON() or MongoDB\BSON\Document::toRelaxedExtendedJSON() instead. 説明 function MongoDB\BSON\toJSON ( string $bson ): string Converts a BSON string to its » Legacy Extended JSON ... ts defined in the » Extended JSON Specification and implemented by MongoDB\BSON\toCanonicalExtendedJSON() and MongoDB\BSON\toRelaxedExtendedJSON() , respectively. 警告 » JSON does not support NAN and INF and MongoDB's Legacy Extended JSON format does not define an al ... e working with BSON that may contain non-finite numbers, please use MongoDB\BSON\toCanonicalExtendedJSON() or MongoDB\BSON\toRelaxedExtendedJSON() . パラメータ bson ( string ) BSON value to be converted. 戻り値 The converted JSON value. エラー / 例外 Throws MongoDB\D ...
https://man.mtool.work/php/8.3/function.mongodb.bson-tojson.html
MongoDB\Driver\ReadPreference::bsonSerialize — Returns an object for BSON seria... 8422
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 パラ ... r\ReadPreference :: PRIMARY ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (1) { ["mode"]=> string(7) "primary" } { "mode" ... use' => 'reporting' ], [] ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["tags"]= ... xStalenessSeconds' => 120 ] ); var_dump ( $rp -> bsonSerialize ()); echo "\n" , MongoDB\BSON\Document :: fromPHP ( $rp )-> toRelaxedExtendedJSON (); ?> 上の例の出力は、 たとえば以下のようになります。 object(stdClass)#2 (2) { ["mode"]=> string(9) "secondary" ["maxStal ...
https://man.mtool.work/php/8.3/mongodb-driver-readpreference.bsonserialize.html
MongoDB\BSON\Binary::jsonSerialize — Returns a representation that can be conve... 8176
MongoDB\BSON\Binary::jsonSerialize (mongodb >=1.2.0) MongoDB\BSON\Binary::jsonSerialize — Returns a representation that can be converted to JSON 説明 final public function MongoDB\BSON\Binary::jsonSerialize (): mixed パラメータ この関数には ... ON format. This does not necessarily match the » relaxed or » canonical extended JSON representations used by MongoDB\BSON\toRelaxedExtendedJSON() and MongoDB\BSON\toCanonicalExtendedJSON() , respectively. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgument ... す MongoDB\BSON\toCanonicalExtendedJSON() - Returns the Canonical Extended JSON representation of a BSON value MongoDB\BSON\toRelaxedExtendedJSON() - Returns the Relaxed Extended JSON representation of a BSON value » MongoDB Extended JSON 他のマニュアルの関連ページ Py ...
https://man.mtool.work/php/8.3/mongodb-bson-binary.jsonserialize.html
MongoDB\BSON\DBPointer::jsonSerialize — Returns a representation that can be co... 8176
MongoDB\BSON\DBPointer::jsonSerialize (mongodb >=1.4.0) MongoDB\BSON\DBPointer::jsonSerialize — Returns a representation that can be converted to JSON 説明 final public function MongoDB\BSON\DBPointer::jsonSerialize (): mixed パラメータ この ... ON format. This does not necessarily match the » relaxed or » canonical extended JSON representations used by MongoDB\BSON\toRelaxedExtendedJSON() and MongoDB\BSON\toCanonicalExtendedJSON() , respectively. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgument ... す MongoDB\BSON\toCanonicalExtendedJSON() - Returns the Canonical Extended JSON representation of a BSON value MongoDB\BSON\toRelaxedExtendedJSON() - Returns the Relaxed Extended JSON representation of a BSON value » MongoDB Extended JSON 他のマニュアルの関連ページ Py ...
https://man.mtool.work/php/8.3/mongodb-bson-dbpointer.jsonserialize.html
MongoDB\BSON\Decimal128::jsonSerialize — Returns a representation that can be c... 8176
MongoDB\BSON\Decimal128::jsonSerialize (mongodb >=1.2.0) MongoDB\BSON\Decimal128::jsonSerialize — Returns a representation that can be converted to JSON 説明 final public function MongoDB\BSON\Decimal128::jsonSerialize (): mixed パラメータ ... ON format. This does not necessarily match the » relaxed or » canonical extended JSON representations used by MongoDB\BSON\toRelaxedExtendedJSON() and MongoDB\BSON\toCanonicalExtendedJSON() , respectively. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgument ... す MongoDB\BSON\toCanonicalExtendedJSON() - Returns the Canonical Extended JSON representation of a BSON value MongoDB\BSON\toRelaxedExtendedJSON() - Returns the Relaxed Extended JSON representation of a BSON value » MongoDB Extended JSON 他のマニュアルの関連ページ Py ...
https://man.mtool.work/php/8.3/mongodb-bson-decimal128.jsonserialize.html
MongoDB\BSON\Javascript::jsonSerialize — Returns a representation that can be c... 8176
MongoDB\BSON\Javascript::jsonSerialize (mongodb >=1.2.0) MongoDB\BSON\Javascript::jsonSerialize — Returns a representation that can be converted to JSON 説明 final public function MongoDB\BSON\Javascript::jsonSerialize (): mixed パラメータ ... ON format. This does not necessarily match the » relaxed or » canonical extended JSON representations used by MongoDB\BSON\toRelaxedExtendedJSON() and MongoDB\BSON\toCanonicalExtendedJSON() , respectively. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgument ... す MongoDB\BSON\toCanonicalExtendedJSON() - Returns the Canonical Extended JSON representation of a BSON value MongoDB\BSON\toRelaxedExtendedJSON() - Returns the Relaxed Extended JSON representation of a BSON value » MongoDB Extended JSON 他のマニュアルの関連ページ Py ...
https://man.mtool.work/php/8.3/mongodb-bson-javascript.jsonserialize.html
PREV 1 2 3 NEXT