« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for wine (0.001 sec.)
Serialization and deserialization of PHP variables into MongoDB | PHP 8.3 9414
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 ... amples <?php class stdClass { public $foo = 42 ; } // => {"foo": 42} class MyClass { public $foo = 42 ; protected $prot = 'wine' ; private $fpr = 'cheese' ; } // => {"foo": 42} class AnotherClass1 implements MongoDB\BSON\Serializable { public $foo = ... 42 ; protected $prot = 'wine' ; private $fpr = 'cheese' ; public function bsonSerialize (): array { return [ 'foo' => $this -> foo , 'prot' => $this -> ... prot ]; } } // => {"foo": 42, "prot": "wine"} class AnotherClass2 implements MongoDB\BSON\Serializable { public $foo = 42 ; public function bsonSerialize (): self { r ...
https://man.mtool.work/php/8.3/mongodb.persistence.html
PREV 1 NEXT