« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 45 for JsonSerializable (0.001 sec.)
JsonSerializable::jsonSerialize — JSON にシリアライズしたいデータを指定する | P... 15817
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 __co ... , 3 ]; echo json_encode (new ArrayValue ( $array ), JSON_PRETTY_PRINT ); ?> 上の例の出力は以下となります。 [ 1, 2, 3 ] 例2 JsonSerializable::jsonSerialize() で連想配列を返す例 <?php class ArrayValue implements JsonSerializable { private $array ; public function ... ode (new ArrayValue ( $array ), JSON_PRETTY_PRINT ); ?> 上の例の出力は以下となります。 { "foo": "bar", "quux": "baz" } 例3 JsonSerializable::jsonSerialize() で整数値を返す例 <?php class IntegerValue implements JsonSerializable { private $number ; public function ...
https://man.mtool.work/php/8.3/jsonserializable.jsonserialize.html
JsonSerializable インターフェイス | PHP 8.3 12035
JsonSerializable インターフェイス (PHP 5 >= 5.4.0, PHP 7, PHP 8) はじめに JsonSerializable を実装したオブジェクトは、 json_encode() を呼んで処理されたときの自身の JSON 表現をカスタマイズできます。 インターフェイス概要 interface JsonSerializable ... able { /* メソッド */ public function jsonSerialize (): mixed } 目次 JsonSerializable::jsonSerialize — JSON にシリアライズしたいデータを指定する ...
https://man.mtool.work/php/8.3/class.jsonserializable.html
JavaScript Object Notation | PHP 8.3 9233
JavaScript Object Notation はじめに この拡張モジュールは、 » JavaScript Object Notation (JSON) というデータ交換形式を実装したものです。 PHP には、PHP のためだけに特別に書かれた JSON パーサーが同梱されており、 PHPライセンスのもとでライセンス ... C 7159 の JSON のスーパーセットです。 インストール/設定 インストール手順 定義済み定数 JsonException — JsonException クラス JsonSerializable — JsonSerializable インターフェイス JsonSerializable::jsonSerialize — JSON にシリアライズしたいデータを指定する JSON 関数 ...
https://man.mtool.work/php/8.3/book.json.html
The MongoDB\BSON\MaxKey class | PHP 8.3 8544
The MongoDB\BSON\MaxKey class (mongodb >=1.0.0) はじめに Special BSON type which compares higher than all other possible BSON element values. 注意 : This is an internal MongoDB type used for indexing and sharding. クラス概要 final class Mon ... goDB\BSON\MaxKey implements MongoDB\BSON\MaxKeyInterface , MongoDB\BSON\Type , JsonSerializable { /* メソッド */ final public function __construct () final public function jsonSerialize (): mixed } 変更履歴 バージョン ... ble interface. PECL mongodb 1.3.0 Implements MongoDB\BSON\MaxKeyInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\MaxKey::__construct — Construct a new MaxKey MongoDB\BSON\MaxKey::jsonSerialize — Returns a representa ...
https://man.mtool.work/php/8.3/class.mongodb-bson-maxkey.html
The MongoDB\BSON\MinKey class | PHP 8.3 8544
The MongoDB\BSON\MinKey class (mongodb >=1.0.0) はじめに Special BSON type which compares lower than all other possible BSON element values. 注意 : This is an internal MongoDB type used for indexing and sharding. クラス概要 final class Mong ... oDB\BSON\MinKey implements MongoDB\BSON\MinKeyInterface , MongoDB\BSON\Type , JsonSerializable { /* メソッド */ final public function __construct () final public function jsonSerialize (): mixed } 変更履歴 バージョン ... ble interface. PECL mongodb 1.3.0 Implements MongoDB\BSON\MinKeyInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\MinKey::__construct — Construct a new MinKey MongoDB\BSON\MinKey::jsonSerialize — Returns a representa ...
https://man.mtool.work/php/8.3/class.mongodb-bson-minkey.html
The Collection interface | PHP 8.3 8360
The Collection interface (PECL ds >= 1.0.0) はじめに Collection is the base interface which covers functionality common to all the data structures in this library. It guarantees that all structures are traversable, countable, and can be con ... verted to json using json_encode() . インターフェイス概要 interface Ds\Collection extends Countable , IteratorAggregate , JsonSerializable { /* メソッド */ public function clear (): void public function copy (): Ds\Collection public function isEmpty (): bool pu ... */ public function Countable::count (): int public function IteratorAggregate::getIterator (): Traversable public function JsonSerializable::jsonSerialize (): mixed } 変更履歴 バージョン 説明 PECL ds 1.4.0 Collection implements IteratorAggregate now instead of j ...
https://man.mtool.work/php/8.3/class.ds-collection.html
The MongoDB\BSON\Regex class | PHP 8.3 8161
The MongoDB\BSON\Regex class (mongodb >=1.0.0) はじめに BSON type for a regular expression pattern and optional » flags . 注意 : This BSON type is mainly used when querying the database. Alternatively, the » $regex query operator may be use ... d. クラス概要 final class MongoDB\BSON\Regex implements MongoDB\BSON\RegexInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final public function __construct ( string $pattern , string $flags = "" ) final public func ... e for PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\RegexInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\Regex::__construct — Construct a new Regex MongoDB\BSON\Regex::getFlags — Returns the Regex's flags Mo ...
https://man.mtool.work/php/8.3/class.mongodb-bson-regex.html
The MongoDB\BSON\UTCDateTime class | PHP 8.3 8161
The MongoDB\BSON\UTCDateTime class (mongodb >=1.0.0) はじめに Represents a » BSON date . The value is a 64-bit integer that represents the number of milliseconds since the Unix epoch (Jan 1, 1970). Negative values represent dates before 197 ... 0. クラス概要 final class MongoDB\BSON\UTCDateTime implements MongoDB\BSON\UTCDateTimeInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final public function __construct ( int | MongoDB\BSON\Int64 | DateTimeInterface | null $mil ... PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\UTCDateTimeInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\UTCDateTime::__construct — Construct a new UTCDateTime MongoDB\BSON\UTCDateTime::jsonSerialize — Retur ...
https://man.mtool.work/php/8.3/class.mongodb-bson-utcdatetime.html
The MongoDB\BSON\Javascript class | PHP 8.3 8069
The MongoDB\BSON\Javascript class (mongodb >=1.0.0) はじめに BSON type for Javascript code. An optional scope document may be specified that maps identifiers to values and defines the scope in which the code should be evaluated by the serve ... pReduce . クラス概要 final class MongoDB\BSON\Javascript implements MongoDB\BSON\JavascriptInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final public function __construct ( string $code , array | object | null $scope = null ) fin ... PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\JavascriptInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\Javascript::__construct — Construct a new Javascript MongoDB\BSON\Javascript::getCode — Returns the Ja ...
https://man.mtool.work/php/8.3/class.mongodb-bson-javascript.html
The MongoDB\BSON\Timestamp class | PHP 8.3 8069
The MongoDB\BSON\Timestamp class (mongodb >=1.0.0) はじめに Represents a » BSON timestamp , The value consists of a 4-byte timestamp (i.e. seconds since the epoch) and a 4-byte increment. 注意 : This is an internal MongoDB type used for rep ... d instead). クラス概要 final class MongoDB\BSON\Timestamp implements MongoDB\BSON\TimestampInterface , MongoDB\BSON\Type , JsonSerializable , Stringable { /* メソッド */ final public function __construct ( int $increment , int $timestamp ) final public function ... r PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\TimestampInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\Timestamp::__construct — Construct a new Timestamp MongoDB\BSON\Timestamp::getIncrement — Returns the ...
https://man.mtool.work/php/8.3/class.mongodb-bson-timestamp.html
PREV 1 2 3 4 5 NEXT