« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 69 for pairs (0.002 sec.)
Returns a sequence containing all the pairs of the map 12584
« Ds\Map::merge Ds\Map::put » PHP Manual Ds\Map Returns a sequence containing all the pairs of the map 検索 Ds\Map::pairs (PECL ds >= 1.0.0) Ds\Map::pairs — Returns a sequence containing all the pairs of the map 説明 public function Ds\Map: ... :pairs (): Ds\Sequence Returns a Ds\Sequence containing all the pairs of the map. パラメータ この関数にはパラメータはありません。 ... 戻り値 Ds\Sequence containing all the pairs of the map. 例 例1 Ds\Map::pairs() example <?php $map = new \Ds\Map ([ "a" => 1 , "b" => 2 , "c" => 3 ]); var_dump ( $map ... -> pairs ()); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Vector)#8 (3) { [0]=> object(Ds\Pair)#5 (2) { ["key"]=> ...
https://man.mtool.work/php/8.3/ds-map.pairs.html
Returns a sequence containing all the pairs of the map 12471
« Ds\Map::merge Ds\Map::put » PHP Manual Ds\Map Returns a sequence containing all the pairs of the map 検索 Ds\Map::pairs (PECL ds >= 1.0.0) Ds\Map::pairs — Returns a sequence containing all the pairs of the map 説明 public function Ds\Map: ... :pairs (): Ds\Sequence Returns a Ds\Sequence containing all the pairs of the map. パラメータ この関数にはパラメータはありません。 ... 戻り値 Ds\Sequence containing all the pairs of the map. 例 例1 Ds\Map::pairs() example <?php $map = new \Ds\Map ([ "a" => 1 , "b" => 2 , "c" => 3 ]); var_dump ( $map ... -> pairs ()); ?> 上の例の出力は、 たとえば以下のようになります。 object(Ds\Vector)#8 (3) { [0]=> object(Ds\Pair)#5 (2) { ["key"]=> ...
https://man.mtool.work/php/8.3/ds-map.pairs.html
Associates all key-value pairs of a traversable object or array 9770
« Ds\Map::put Ds\Map::reduce » PHP Manual Ds\Map Associates all key-value pairs of a traversable object or array 検索 Ds\Map::putAll (PECL ds >= 1.0.2) Ds\Map::putAll — Associates all key-value pairs of a traversable object or array 説明 pu ... blic function Ds\Map::putAll ( mixed $pairs ): void Associates all key-value pairs of a traversable object or array . 注意 : Keys of type object are supported. If an ... object does not implement Ds\Hashable , objects must be references to the same instance to be considered equal. パラメータ pairs traversable object or array . 戻り値 値を返しません。 例 例1 Ds\Map::putAll() example <?php $map = new \Ds\Map (); $map -> ... bject ( [key] => b [value] => 2 ) [2] => Ds\Pair Object ( [key] => c [value] => 3 ) ) 関連キーワード: object Map key value pairs traversable array putAll Associates Object map Pair function Hashable put Search reduce mixed void Keys ...
https://man.mtool.work/php/8.3/ds-map.putall.html
Associates all key-value pairs of a traversable object or array 9770
« Ds\Map::put Ds\Map::reduce » PHP Manual Ds\Map Associates all key-value pairs of a traversable object or array 検索 Ds\Map::putAll (PECL ds >= 1.0.2) Ds\Map::putAll — Associates all key-value pairs of a traversable object or array 説明 pu ... blic function Ds\Map::putAll ( mixed $pairs ): void Associates all key-value pairs of a traversable object or array . 注意 : Keys of type object are supported. If an ... object does not implement Ds\Hashable , objects must be references to the same instance to be considered equal. パラメータ pairs traversable object or array . 戻り値 値を返しません。 例 例1 Ds\Map::putAll() example <?php $map = new \Ds\Map (); $map -> ... 1 ) [1] => Ds\Pair Object ( [key] => b [value] => 2 ) [2] => Ds\Pair Object ( [key] => c [value] => 3 ) ) 関連キーワード: pairs traversable putAll Associates Pair Hashable reduce mixed Keys type supported implements equality determined equals impleme ...
https://man.mtool.work/php/8.3/ds-map.putall.html
文字の変換あるいは部分文字列の置換を行う 9714
« strtoupper substr » PHP Manual String 関数 文字の変換あるいは部分文字列の置換を行う 検索 strtr (PHP 4, PHP 5, PHP 7, PHP 8) strtr — 文字の変換あるいは部分文字列の置換を行う 説明 function strtr ( string $string , string $from , string $to ... ): string 代替のシグネチャ (名前付き引数をサポートしていません): function strtr ( string $string , array $replace_pairs ): string 引数を三つ渡した場合、この関数は string のコピーを返します。その際に、文字列中に from の各文字 (シングルバイト) ... 同じ長さである場合です。 パラメータ string 変換する文字列。 from to に変換される文字列。 to from を置換する文字列。 replace_pairs replace_pairs パラメータを to や from のかわりに使用することができます。この場合は array('from' => 'to', ...) 形式の配列と ... なります。 replace_pairs の中に空文字列 ( "" ) のキーがある場合は、その要素は無視されます。 PHP 8.0.0 以降では、この場合 E_WARNING が発生します。 戻 ...
https://man.mtool.work/php/8.3/function.strtr.html
文字の変換あるいは部分文字列の置換を行う 9657
« strtoupper substr » PHP Manual String 関数 文字の変換あるいは部分文字列の置換を行う 検索 strtr (PHP 4, PHP 5, PHP 7, PHP 8) strtr — 文字の変換あるいは部分文字列の置換を行う 説明 function strtr ( string $string , string $from , string $to ... ): string 代替のシグネチャ (名前付き引数をサポートしていません): function strtr ( string $string , array $replace_pairs ): string 引数を三つ渡した場合、この関数は string のコピーを返します。その際に、文字列中に from の各文字 (シングルバイト) ... 同じ長さである場合です。 パラメータ string 変換する文字列。 from to に変換される文字列。 to from を置換する文字列。 replace_pairs replace_pairs パラメータを to や from のかわりに使用することができます。この場合は array('from' => 'to', ...) 形式の配列と ... なります。 replace_pairs の中に空文字列 ( "" ) のキーがある場合は、その要素は無視されます。 PHP 8.0.0 以降では、この場合 E_WARNING が発生します。 戻 ...
https://man.mtool.work/php/8.3/function.strtr.html
The Map class 8908
« Ds\Deque::unshift Ds\Map::allocate » PHP Manual Data Structures The Map class 検索 The Map class (PECL ds >= 1.0.0) はじめに A Map is a sequential collection of key-value pairs, almost identical to an array used in a similar context. Keys ... Ds\Pair public function map ( callable $callback ): Ds\Map public function merge ( mixed $values ): Ds\Map public function pairs (): Ds\Sequence public function put ( mixed $key , mixed $value ): void public function putAll ( mixed $pairs ): void publ ... tes a new map using keys that aren't in another map Ds\Map::filter — Creates a new map using a callable to determine which pairs to include Ds\Map::first — Returns the first pair in the map Ds\Map::get — Returns the value for a given key Ds\Map::hasKe ... he result of applying a callback to each value Ds\Map::merge — Returns the result of adding all given associations Ds\Map::pairs — Returns a sequence containing all the pairs of the map Ds\Map::put — Associates a key with a value Ds\Map::putAll — Asso ...
https://man.mtool.work/php/8.3/class.ds-map.html
The Map class 8908
« Ds\Deque::unshift Ds\Map::allocate » PHP Manual Data Structures The Map class 検索 The Map class (PECL ds >= 1.0.0) はじめに A Map is a sequential collection of key-value pairs, almost identical to an array used in a similar context. Keys ... Ds\Pair public function map ( callable $callback ): Ds\Map public function merge ( mixed $values ): Ds\Map public function pairs (): Ds\Sequence public function put ( mixed $key , mixed $value ): void public function putAll ( mixed $pairs ): void publ ... tes a new map using keys that aren't in another map Ds\Map::filter — Creates a new map using a callable to determine which pairs to include Ds\Map::first — Returns the first pair in the map Ds\Map::get — Returns the value for a given key Ds\Map::hasKe ... he result of applying a callback to each value Ds\Map::merge — Returns the result of adding all given associations Ds\Map::pairs — Returns a sequence containing all the pairs of the map Ds\Map::put — Associates a key with a value Ds\Map::putAll — Asso ...
https://man.mtool.work/php/8.3/class.ds-map.html
Creates a new map using a callable to determine which pairs to include 8512
« Ds\Map::diff Ds\Map::first » PHP Manual Ds\Map Creates a new map using a callable to determine which pairs to include 検索 Ds\Map::filter (PECL ds >= 1.0.0) Ds\Map::filter — Creates a new map using a callable to determine which pairs to i ... 説明 public function Ds\Map::filter ( callable $callback = ? ): Ds\Map Creates a new map using a callable to determine which pairs to include. パラメータ callback function callback ( mixed $key , mixed $value ): bool Optional callable which returns true ... if the pair should be included, false otherwise. If a callback is not provided, only values which are true (see converting to boolean ) ... will be included. 戻り値 A new map containing all the pairs for which either the callback returned true , or all values that convert to true if a callback was not provided. 例 例1 Ds ...
https://man.mtool.work/php/8.3/ds-map.filter.html
Returns a subset of the map defined by a starting index and length 8512
« Ds\Map::skip Ds\Map::sort » PHP Manual Ds\Map Returns a subset of the map defined by a starting index and length 検索 Ds\Map::slice (PECL ds >= 1.0.0) Ds\Map::slice — Returns a subset of the map defined by a starting index and length 説明 ... will start that far from the end. length If a length is given and is positive, the resulting map will have up to that many pairs in it. If a length is given and is negative, the range will stop that many pairs from the end. If the length results in an ... overflow, only pairs up to the end of the map will be included. If a length is not provided, the resulting map will contain all pairs between t ... [d] => 4 ) 関連キーワード: map length index Map slice end subset defined starting Slice print toArray Array Returns range pairs onwards int positive start ...
https://man.mtool.work/php/8.3/ds-map.slice.html
PREV 1 2 3 4 5 6 7 NEXT