« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 32 for pairs (0.001 sec.)
Ds\Map::pairs — Returns a sequence containing all the pairs of the map | PHP 8.... 14224
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
strtr — 文字の変換あるいは部分文字列の置換を行う | PHP 8.3 11566
strtr (PHP 4, PHP 5, PHP 7, PHP 8) strtr — 文字の変換あるいは部分文字列の置換を行う 説明 function strtr ( string $string , string $from , string $to ): string 代替のシグネチャ (名前付き引数をサポートしていません): function strtr ( string $s ... tring , 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 | PHP 8.3 10439
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 can be any type, but must be unique. Values are replaced if added to the map using t ... 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
Ds\Map::putAll — Associates all key-value pairs of a traversable object or arra... 10342
Ds\Map::putAll (PECL ds >= 1.0.2) Ds\Map::putAll — Associates all key-value pairs of a traversable object or array 説明 public function Ds\Map::putAll ( mixed $pairs ): void Associates all key-value pairs of a traversable object or array . ... 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 -> ...
https://man.mtool.work/php/8.3/ds-map.putall.html
Ds\Map::slice — Returns a subset of the map defined by a starting index and len... 9617
Ds\Map::slice (PECL ds >= 1.0.0) Ds\Map::slice — Returns a subset of the map defined by a starting index and length 説明 public function Ds\Map::slice ( int $index , int $length = ? ): Ds\Map Returns a subset of the map defined by a startin ... 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 ...
https://man.mtool.work/php/8.3/ds-map.slice.html
Ds\Map::union — Creates a new map using values from the current instance and an... 9134
Ds\Map::union (PECL ds >= 1.0.0) Ds\Map::union — Creates a new map using values from the current instance and another map 説明 public function Ds\Map::union ( Ds\Map $map ): Ds\Map Creates a new map that contains the pairs of the current in ... stance as well as the pairs of another map . A ∪ B = {x: x ∈ A ∨ x ∈ B} 注意 : Values of the current instance will be overwritten by those provided wh ... re keys are equal. パラメータ map The other map, to combine with the current instance. 戻り値 A new map containing all the pairs of the current instance as well as another map . 参考 » Union on Wikipedia 例 例1 Ds\Map::union() example <?php $a = new \ ...
https://man.mtool.work/php/8.3/ds-map.union.html
Ds\Map::filter — Creates a new map using a callable | PHP 8.3 8812
Ds\Map::filter (PECL ds >= 1.0.0) Ds\Map::filter — Creates a new map using a callable to determine which pairs to include 説明 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
Differences from Standard Lua | PHP 8.3 8167
Differences from Standard Lua LuaSandbox provides a sandboxed environment which differs in some ways from standard Lua 5.1. Features that are not available dofile() , loadfile() , and the io package, as they allow direct filesystem access. ... t. math.random() and math.randomseed() are replaced with versions that don't share state with PHP's rand() . The Lua 5.2 __pairs and __ipairs metamethods are supported by pairs() and ipairs() . 他のマニュアルの関連ページ Linux JM access(2) Python debu ...
https://man.mtool.work/php/8.3/reference.luasandbox.differences.html
Yac::add — Store a value without overwriting an existing one | PHP 8.3 8087
Yac::add (PECL yac >= 1.0.0) Yac::add — Store a value without overwriting an existing one 説明 public function Yac::add ( string | array $key , mixed $value , int $ttl = 0 ): bool public function Yac::add ( array $values , int $ttl = 0 ): b ... ng entry that is still valid; the store is rejected in that case. パラメータ key A string key, or an array of key => value pairs to store in one call. value The value to store. Every PHP type except resource can be stored. Only used in the single-key ... )); // bool(false): expired ?> 例3 Adding multiple entries at once <?php $yac = new Yac (); // store several key => value pairs with one call, with a ttl $yac -> add (array( "a" => 1 , "b" => 2 ), 60 ); ?> 参考 Yac::set() - Store a value into the cac ...
https://man.mtool.work/php/8.3/yac.add.html
Yac::set — Store a value into the cache | PHP 8.3 8087
Yac::set (PECL yac >= 1.0.0) Yac::set — Store a value into the cache 説明 public function Yac::set ( string | array $key , mixed $value , int $ttl = 0 ): bool public function Yac::set ( array $values , int $ttl = 0 ): bool Stores a value in ... sting entry is overwritten, regardless of whether it has expired. パラメータ key A string key, or an array of key => value pairs to store in one call. value The value to store. Every PHP type except resource can be stored. Only used in the single-key ... )); // bool(false): expired ?> 例3 Setting multiple entries at once <?php $yac = new Yac (); // store several key => value pairs with one call $yac -> set (array( "a" => 1 , "b" => 2 )); ?> 参考 Yac::add() - Store a value without overwriting an existi ...
https://man.mtool.work/php/8.3/yac.set.html
PREV 1 2 3 4 NEXT