« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for Cheese (0.001 sec.)
AppendIterator::__construct — AppendIterator を作成する | PHP 8.3 11228
AppendIterator::__construct (PHP 5 >= 5.1.0, PHP 7, PHP 8) AppendIterator::__construct — AppendIterator を作成する 説明 public function AppendIterator::__construct () AppendIterator を作成します。 パラメータ この関数にはパラメータはありませ ... <?php $pizzas = new ArrayIterator (array( 'Margarita' , 'Siciliana' , 'Hawaii' )); $toppings = new ArrayIterator (array( 'Cheese' , 'Anchovies' , 'Olives' , 'Pineapple' , 'Ham' )); $appendIterator = new AppendIterator ; $appendIterator -> append ( $pi ... echo $key . ' => ' . $item . PHP_EOL ; } ?> 上の例の出力は以下となります。 0 => Margarita 1 => Siciliana 2 => Hawaii 0 => Cheese 1 => Anchovies 2 => Olives 3 => Pineapple 4 => Ham 例2 AppendIterator API による AppendIterator の処理 <?php $pizzas = new ... ArrayIterator (array( 'Margarita' , 'Siciliana' , 'Hawaii' )); $toppings = new ArrayIterator (array( 'Cheese' , 'Anchovies' , 'Olives' , 'Pineapple' , 'Ham' )); $appendIterator = new AppendIterator ; $appendIterator -> append ( $pi ...
https://man.mtool.work/php/8.3/appenditerator.construct.html
Serialization and deserialization of PHP variables into MongoDB | PHP 8.3 7485
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 ... ass { 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 = 'wi ... ne' ; private $fpr = 'cheese' ; public function bsonSerialize (): array { return [ 'foo' => $this -> foo , 'prot' => $this -> prot ]; } } // => {"foo": ... ar"}} class UpperClass implements MongoDB\BSON\Persistable { public $foo = 42 ; protected $prot = 'wine' ; private $fpr = 'cheese' ; private $data ; public function bsonUnserialize (array $data ): void { $this -> data = $data ; } public function bsonSe ...
https://man.mtool.work/php/8.3/mongodb.persistence.html
PREV 1 NEXT