« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 55 for fromPHP (1.070 sec.)
Returns the BSON representation of a PHP value 12447
« MongoDB\BSON\fromJSON MongoDB\BSON\toCanonicalExtendedJSON » PHP Manual 関数 Returns the BSON representation of a PHP value 検索 MongoDB\BSON\fromPHP (mongodb >=1.0.0) MongoDB\BSON\fromPHP — Returns the BSON representation of a PHP value ... 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
Returns the BSON representation of a PHP value 12447
« MongoDB\BSON\fromJSON MongoDB\BSON\toCanonicalExtendedJSON » PHP Manual 関数 Returns the BSON representation of a PHP value 検索 MongoDB\BSON\fromPHP (mongodb >=1.0.0) MongoDB\BSON\fromPHP — Returns the BSON representation of a PHP value ... 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
Construct a new BSON array instance from PHP data 9594
« MongoDB\BSON\PackedArray::fromJSON MongoDB\BSON\PackedArray::get » PHP Manual MongoDB\BSON\PackedArray Construct a new BSON array instance from PHP data 検索 MongoDB\BSON\PackedArray::fromPHP (mongodb >=1.16.0) MongoDB\BSON\PackedArray::fromPHP ... romPHP — Construct a new BSON array instance from PHP data 説明 final static public function MongoDB\BSON\PackedArray::fromPHP ( array $value ): MongoDB\BSON\PackedArray パラメ ... al numeric keys starting with 0 ). 参考 » BSON Types 関連キーワード: MongoDB array PackedArray new instance Construct data fromPHP value list sequential numeric keys starting Throws Driver Exception InvalidArgumentException fromJSON Search ...
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.fromphp.html
Construct a new BSON array instance from PHP data 9594
« MongoDB\BSON\PackedArray::fromJSON MongoDB\BSON\PackedArray::get » PHP Manual MongoDB\BSON\PackedArray Construct a new BSON array instance from PHP data 検索 MongoDB\BSON\PackedArray::fromPHP (mongodb >=1.16.0) MongoDB\BSON\PackedArray::fromPHP ... romPHP — Construct a new BSON array instance from PHP data 説明 final static public function MongoDB\BSON\PackedArray::fromPHP ( array $value ): MongoDB\BSON\PackedArray パラメ ... e. has sequential numeric keys starting with 0 ). 参考 » BSON Types 関連キーワード: MongoDB PackedArray instance Construct fromPHP list sequential numeric keys starting Throws Driver Exception InvalidArgumentException fromJSON mongodb final static conve ...
https://man.mtool.work/php/8.3/mongodb-bson-packedarray.fromphp.html
Construct a new document instance from PHP data 9520
« MongoDB\BSON\Document::fromJSON MongoDB\BSON\Document::get » PHP Manual MongoDB\BSON\Document Construct a new document instance from PHP data 検索 MongoDB\BSON\Document::fromPHP (mongodb >=1.16.0) MongoDB\BSON\Document::fromPHP — Construc ... t a new document instance from PHP data 説明 final static public function MongoDB\BSON\Document::fromPHP ( object | array $value ): MongoDB\BSON\Document パ ... ument instance from a JSON string » BSON Types 関連キーワード: MongoDB Document document new instance Construct array data fromPHP object fromJSON value numeric keys string Search get mongodb final static ...
https://man.mtool.work/php/8.3/mongodb-bson-document.fromphp.html
Construct a new document instance from PHP data 9520
« MongoDB\BSON\Document::fromJSON MongoDB\BSON\Document::get » PHP Manual MongoDB\BSON\Document Construct a new document instance from PHP data 検索 MongoDB\BSON\Document::fromPHP (mongodb >=1.16.0) MongoDB\BSON\Document::fromPHP — Construc ... t a new document instance from PHP data 説明 final static public function MongoDB\BSON\Document::fromPHP ( object | array $value ): MongoDB\BSON\Document パ ... truct a new document instance from a JSON string » BSON Types 関連キーワード: MongoDB Document document instance Construct fromPHP fromJSON numeric keys mongodb final static containing passing values converted strings used Throws Driver Exception Invali ...
https://man.mtool.work/php/8.3/mongodb-bson-document.fromphp.html
Provides an array or document to serialize as BSON 8988
« MongoDB\BSON\Serializable MongoDB\BSON\Unserializable » PHP Manual MongoDB\BSON\Serializable Provides an array or document to serialize as BSON 検索 MongoDB\BSON\Serializable::bsonSerialize (mongodb >=1.0.0) MongoDB\BSON\Serializable::bso ... 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
Provides an array or document to serialize as BSON 8988
« MongoDB\BSON\Serializable MongoDB\BSON\Unserializable » PHP Manual MongoDB\BSON\Serializable Provides an array or document to serialize as BSON 検索 MongoDB\BSON\Serializable::bsonSerialize (mongodb >=1.0.0) MongoDB\BSON\Serializable::bso ... 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
Construct a new document instance from a JSON string 8441
« MongoDB\BSON\Document::fromBSON MongoDB\BSON\Document::fromPHP » PHP Manual MongoDB\BSON\Document Construct a new document instance from a JSON string 検索 MongoDB\BSON\Document::fromJSON (mongodb >=1.16.0) MongoDB\BSON\Document::fromJSON ... ception 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 MongoDB\BSON\Document::fromBSON() - Construct a new document instance ... ngoDB Extended JSON » BSON Types 関連キーワード: MongoDB Document string new document instance Construct fromJSON fromBSON fromPHP json value converted Throws Driver Exception Search mongodb final static ...
https://man.mtool.work/php/8.3/mongodb-bson-document.fromjson.html
Construct a new document instance from a JSON string 8441
« MongoDB\BSON\Document::fromBSON MongoDB\BSON\Document::fromPHP » PHP Manual MongoDB\BSON\Document Construct a new document instance from a JSON string 検索 MongoDB\BSON\Document::fromJSON (mongodb >=1.16.0) MongoDB\BSON\Document::fromJSON ... ception 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 MongoDB\BSON\Document::fromBSON() - Construct a new document instance ... string » MongoDB Extended JSON » BSON Types 関連キーワード: MongoDB Document document instance Construct fromJSON fromBSON fromPHP json converted Throws Driver Exception mongodb final static Converts extended representation InvalidArgumentException argu ...
https://man.mtool.work/php/8.3/mongodb-bson-document.fromjson.html
PREV 1 2 3 4 5 6 NEXT