Results of 1 - 10 of about 67 for pair (0.002 sec.)
- The Pair class | PHP 8.3 11565
- The Pair class (PECL ds >= 1.0.0) はじめに A pair is used by Ds\Map to pair keys with values. クラス概要 class Ds\Pair implements JsonSerializable { /* メソッド */ public function __construct ( mixed $key = ? , mixed $value = ? ) public fun
... ction clear (): void public function copy (): Ds\Pair public function isEmpty (): bool public function toArray (): array } 目次 Ds\Pair::clear — Removes all values Ds\Pair::__c ... onstruct — Creates a new instance Ds\Pair::copy — Returns a shallow copy of the pair Ds\Pair::isEmpty — Returns whether the pair is empty Ds\Pair::jsonSerialize — R ... eturns a representation that can be converted to JSON Ds\Pair::toArray — Converts the pair to an array 他のマニュアルの関連ページ DuckDB Map Functions Linux JM getuid32(2) Linux JM get ...
-
https://man.mtool.work/php/8.3/class.ds-pair.html
- Ds\Pair::clear — Removes all values | PHP 8.3 11267
- Ds\Pair::clear (No version information available, might only be in Git) Ds\Pair::clear — Removes all values 説明 public function Ds\Pair::clear (): void Removes all values from the pair. パラメータ この関数にはパラメータはありません。 戻り値
... 値を返しません。 例 例1 Ds\Pair::clear() example <?php $pair = new \Ds\Pair ( "a" , 1 ); print_r ( $pair ); $pair -> clear (); print_r ( $pair ); ?> 上の例 ... の出力は、 たとえば以下のようになります。 Ds\Pair Object ( [key] => a [value] => 1 ) Ds\Pair Object ( ) 他のマニュアルの関連ページ Linux JM getuid32(2) Linux JM getuid(2) L ...
-
https://man.mtool.work/php/8.3/ds-pair.clear.html
- Ds\Pair::copy — Returns a shallow copy of the pair | PHP 8.3 11053
- Ds\Pair::copy (No version information available, might only be in Git) Ds\Pair::copy — Returns a shallow copy of the pair 説明 public function Ds\Pair::copy (): Ds\Pair Returns a shallow copy of the pair. パラメータ この関数にはパラメータは
... ありません。 戻り値 Returns a shallow copy of the pair. 例 例1 Ds\Pair::copy() example <?php $a = new \Ds\Pair ( "a" , 1 ); $b = $a -> copy (); $a -> key = "x" ; print_r ( $a ); ... print_r ( $b ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Pair Object ( [key] => x [value] => 1 ) Ds\Pair Object ( [key] => a [value] => 1 ) 他のマニュアルの関連ページ Python filecmp Py ...
-
https://man.mtool.work/php/8.3/ds-pair.copy.html
- Ds\Pair::toArray — Converts the pair to an array | PHP 8.3 10925
- Ds\Pair::toArray (PECL ds >= 1.0.0) Ds\Pair::toArray — Converts the pair to an array 説明 public function Ds\Pair::toArray (): array Converts the pair to an array . 注意 : Casting to an array is not supported yet. パラメータ この関数にはパラ
... メータはありません。 戻り値 An array containing all the values in the same order as the pair. 例 例1 Ds\Pair::toArray() example <?php $pair = new \Ds\Pair ( "a" , 1 ); var_dump ( $pair -> toArray ()); ?> 上の例の出力 ...
-
https://man.mtool.work/php/8.3/ds-pair.toarray.html
- Ds\Pair::isEmpty — Returns whether the pair is empty | PHP 8.3 10712
- Ds\Pair::isEmpty (No version information available, might only be in Git) Ds\Pair::isEmpty — Returns whether the pair is empty 説明 public function Ds\Pair::isEmpty (): bool Returns whether the pair is empty. パラメータ この関数にはパラメー
... タはありません。 戻り値 Returns true if the pair is empty, false otherwise. 例 例1 Ds\Pair::isEmpty() example <?php $a = new \Ds\Pair ( "a" , 1 ); $b = new \Ds\Pair (); va ...
-
https://man.mtool.work/php/8.3/ds-pair.isempty.html
- socket_create_pair — 区別できないソケットの組を作成し、配列に保存する | PHP 8.3 9375
- socket_create_pair (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) socket_create_pair — 区別できないソケットの組を作成し、配列に保存する 説明 function socket_create_pair ( int $domain , int $type , int $protocol , array &$pair ): bool socket_create_pair
... air() は、接続されており区別できない 2 つのソケットを作成し、それを pair に保存します。 この関数は、一般に IPC(InterProcess Communication: プロセス間通信) で使用します。 パラメータ domain domai ... 対応する定数 SOL_TCP および SOL_UDP も使用可能です。 サポートするプロトコルの完全な一覧は socket_create() を参照ください。 pair 2 つの Socket クラスのインスタンスが格納される配列への参照。 戻り値 成功した場合に true を、失敗した場合に false を返します ... 。 変更履歴 バージョン 説明 8.0.0 pair は、 Socket クラスのインスタンスの配列へのリファレンスになりました。 これより前のバージョンでは、リソースの配列へのリファレ ...
-
https://man.mtool.work/php/8.3/function.socket-create-pair.html
- Ds\Map::map — Returns the result of applying a callback to each value | PHP 8.3 8322
- Ds\Map::map (PECL ds >= 1.0.0) Ds\Map::map — Returns the result of applying a callback to each value 説明 public function Ds\Map::map ( callable $callback ): Ds\Map Returns the result of applying a callback function to each value of the map
... key , $value ) { return $value * 2 ; })); print_r ( $map ); ?> 上の例の出力は、 たとえば以下のようになります。 ( [0] => Ds\Pair Object ( [key] => a [value] => 2 ) [1] => Ds\Pair Object ( [key] => b [value] => 4 ) [2] => Ds\Pair Object ( [key] => c [v ... alue] => 6 ) ) Ds\Map Object ( [0] => Ds\Pair Object ( [key] => a [value] => 1 ) [1] => Ds\Pair Object ( [key] => b [value] => 2 ) [2] => Ds\Pair Object ( [key] => c [v ...
-
https://man.mtool.work/php/8.3/ds-map.map.html
- Ds\Map::first — Returns the first pair in the map | PHP 8.3 8279
- Ds\Map::first (PECL ds >= 1.0.0) Ds\Map::first — Returns the first pair in the map 説明 public function Ds\Map::first (): Ds\Pair Returns the first pair in the map. パラメータ この関数にはパラメータはありません。 戻り値 The first pair in th
... => 1 , "b" => 2 , "c" => 3 ]); var_dump ( $map -> first ()); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Pair)#2 (2) { ["key"]=> string(1) "a" ["value"]=> int(1) } 他のマニュアルの関連ページ Linux JM getuid(2) Linux JM getuid32(2) L ...
-
https://man.mtool.work/php/8.3/ds-map.first.html
- Ds\Map::last — Returns the last pair of the map | PHP 8.3 8279
- Ds\Map::last (PECL ds >= 1.0.0) Ds\Map::last — Returns the last pair of the map 説明 public function Ds\Map::last (): Ds\Pair Returns the last pair of the map. パラメータ この関数にはパラメータはありません。 戻り値 The last pair of the map.
... " => 1 , "b" => 2 , "c" => 3 ]); var_dump ( $map -> last ()); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Pair)#2 (2) { ["key"]=> string(1) "c" ["value"]=> int(3) } 他のマニュアルの関連ページ Linux JM getuid32(2) Linux JM geteuid(2) ...
-
https://man.mtool.work/php/8.3/ds-map.last.html
- Ds\Map::skip — Returns the pair at a given positional index | PHP 8.3 8237
- Ds\Map::skip (PECL ds >= 1.0.0) Ds\Map::skip — Returns the pair at a given positional index 説明 public function Ds\Map::skip ( int $position ): Ds\Pair Returns the pair at a given zero-based position . パラメータ position The zero-based po
... sitional index to return. 戻り値 Returns the Ds\Pair at the given position . エラー / 例外 OutOfRangeException if the position is not valid. 例 例1 Ds\Map::skip() example <?ph ... > 1 , "b" => 2 , "c" => 3 ]); var_dump ( $map -> skip ( 1 )); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Pair)#2 (2) { ["key"]=> string(1) "b" ["value"]=> int(2) } 他のマニュアルの関連ページ DuckDB Prepared Statements DuckDB PREPARE ...
-
https://man.mtool.work/php/8.3/ds-map.skip.html