« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for ksorted (0.002 sec.)
Ds\Map::ksorted — Returns a copy, sorted by key | PHP 8.3 12389
Ds\Map::ksorted (No version information available, might only be in Git) Ds\Map::ksorted — Returns a copy, sorted by key 説明 public function Ds\Map::ksorted ( callable $comparator = ? ): Ds\Map Returns a copy sorted by key, using an option ... った値は整数値 0 にキャストされ、 値が等しいとみなされます。 戻り値 Returns a copy of the map, sorted by key. 例 例1 Ds\Map::ksorted() example <?php $map = new \Ds\Map ([ "b" => 2 , "c" => 3 , "a" => 1 ]); print_r ( $map -> ksorted ()); ?> 上の例の出力は、 ... ] => 1 ) [1] => Ds\Pair Object ( [key] => b [value] => 2 ) [2] => Ds\Pair Object ( [key] => c [value] => 3 ) ) 例2 Ds\Map::ksorted() example using a comparator <?php $map = new \Ds\Map ([ 1 => "x" , 2 => "y" , 0 => "z" ]); // Reverse $sorted = $map -> k ...
https://man.mtool.work/php/8.3/ds-map.ksorted.html
The Map class | PHP 8.3 8728
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 ... isEmpty (): bool public function keys (): Ds\Set public function ksort ( callable $comparator = ? ): void public function ksorted ( callable $comparator = ? ): Ds\Map public function last (): Ds\Pair public function map ( callable $callback ): Ds\Map p ... be converted to JSON Ds\Map::keys — Returns a set of the map's keys Ds\Map::ksort — Sorts the map in-place by key Ds\Map::ksorted — Returns a copy, sorted by key Ds\Map::last — Returns the last pair of the map Ds\Map::map — Returns the result of applyi ...
https://man.mtool.work/php/8.3/class.ds-map.html
Data Structures | PHP 8.3 8025
Data Structures はじめに Efficient data structures for PHP 7, provided as an alternative to the array . See » this blog post for benchmarks, discussion and frequently asked questions. インストール/設定 要件 インストール手順 例 Ds\Collection ... be converted to JSON Ds\Map::keys — Returns a set of the map's keys Ds\Map::ksort — Sorts the map in-place by key Ds\Map::ksorted — Returns a copy, sorted by key Ds\Map::last — Returns the last pair of the map Ds\Map::map — Returns the result of applyi ...
https://man.mtool.work/php/8.3/book.ds.html
関数・メソッド | PHP 8.3 7803
関数・メソッド マニュアル内の全関数およびメソッドの一覧 a b c d e f g h i j k l m n o p q r s t u v w x y z _ a abs - 絶対値 acos - 逆余弦(アークコサイン) acosh - 逆双曲線余弦(アークハイパボリックコサイン) addcslashes - C 言語と同様にス ... be converted to JSON Ds\Map::keys - Returns a set of the map's keys Ds\Map::ksort - Sorts the map in-place by key Ds\Map::ksorted - Returns a copy, sorted by key Ds\Map::last - Returns the last pair of the map Ds\Map::map - Returns the result of applyi ...
https://man.mtool.work/php/8.3/indexes.functions.html
PREV 1 NEXT