Results of 1 - 10 of about 51 for jsonSerialize (0.003 sec.)
- JsonSerializable::jsonSerialize — JSON にシリアライズしたいデータを指定する | P... 12754
- JsonSerializable::jsonSerialize (PHP 5 >= 5.4.0, PHP 7, PHP 8) JsonSerializable::jsonSerialize — JSON にシリアライズしたいデータを指定する 説明 public function JsonSerializable::jsonSerialize (): mixed オブジェクトをシリアライズして、 json_
... 。 戻り値 json_encode() でシリアライズするデータを返します。 resource 型以外の任意の型になります。 例 例1 JsonSerializable::jsonSerialize() で配列を返す例 <?php class ArrayValue implements JsonSerializable { private $array ; public function __construct (array ... $array ) { $this -> array = $array ; } public function jsonSerialize (): mixed { return $this -> array ; } } $array = [ 1 , 2 , 3 ]; echo json_encode (new ArrayValue ( $array ), JSON_PRETTY_P ... RINT ); ?> 上の例の出力は以下となります。 [ 1, 2, 3 ] 例2 JsonSerializable::jsonSerialize() で連想配列を返す例 <?php class ArrayValue implements JsonSerializable { private $array ; public function __construct (ar ...
-
https://man.mtool.work/php/8.3/jsonserializable.jsonserialize.html
- Ds\Pair::jsonSerialize — Returns a representation that can be converted to JSON... 8887
- Ds\Pair::jsonSerialize (PECL ds >= 1.0.0) Ds\Pair::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連ペー
...
-
https://man.mtool.work/php/8.3/ds-pair.jsonserialize.html
- Ds\PriorityQueue::jsonSerialize — Returns a representation that can be converte... 8887
- Ds\PriorityQueue::jsonSerialize (PECL ds >= 1.0.0) Ds\PriorityQueue::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマ
...
-
https://man.mtool.work/php/8.3/ds-priorityqueue.jsonserialize.html
- Ds\Queue::jsonSerialize — Returns a representation that can be converted to JSO... 8887
- Ds\Queue::jsonSerialize (PECL ds >= 1.0.0) Ds\Queue::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連ペ
...
-
https://man.mtool.work/php/8.3/ds-queue.jsonserialize.html
- Ds\Deque::jsonSerialize — Returns a representation that can be converted to JSO... 8797
- Ds\Deque::jsonSerialize (PECL ds >= 1.0.0) Ds\Deque::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連ペ
...
-
https://man.mtool.work/php/8.3/ds-deque.jsonserialize.html
- Ds\Map::jsonSerialize — Returns a representation that can be converted to JSON ... 8797
- Ds\Map::jsonSerialize (PECL ds >= 1.0.0) Ds\Map::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連ページ
...
-
https://man.mtool.work/php/8.3/ds-map.jsonserialize.html
- Ds\Set::jsonSerialize — Returns a representation that can be converted to JSON ... 8797
- Ds\Set::jsonSerialize (PECL ds >= 1.0.0) Ds\Set::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連ページ
...
-
https://man.mtool.work/php/8.3/ds-set.jsonserialize.html
- Ds\Vector::jsonSerialize — Returns a representation that can be converted to JS... 8797
- Ds\Vector::jsonSerialize (PECL ds >= 1.0.0) Ds\Vector::jsonSerialize — Returns a representation that can be converted to JSON 説明 See JsonSerializable::jsonSerialize() 注意 : You should never need to call this directly. 他のマニュアルの関連
...
-
https://man.mtool.work/php/8.3/ds-vector.jsonserialize.html
- MongoDB\BSON\DBPointer::jsonSerialize — Returns a representation that can be co... 8797
- 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 パラメータ この
... エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 参考 JsonSerializable::jsonSerialize() - JSON にシリアライズしたいデータを指定する json_encode() - 値を JSON 形式にして返す MongoDB\BSON\toCanonicalExtendedJSO ...
-
https://man.mtool.work/php/8.3/mongodb-bson-dbpointer.jsonserialize.html
- MongoDB\BSON\Javascript::jsonSerialize — Returns a representation that can be c... 8797
- 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 パラメータ
... エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 参考 JsonSerializable::jsonSerialize() - JSON にシリアライズしたいデータを指定する json_encode() - 値を JSON 形式にして返す MongoDB\BSON\toCanonicalExtendedJSO ...
-
https://man.mtool.work/php/8.3/mongodb-bson-javascript.jsonserialize.html