« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 22 for Sorted (0.004 sec.)
Ds\Deque::sorted — Returns a sorted copy | PHP 8.3 11649
Ds\Deque::sorted (PECL ds >= 1.0.0) Ds\Deque::sorted — Returns a sorted copy 説明 public function Ds\Deque::sorted ( callable $comparator = ? ): Ds\Deque Returns a sorted copy, using an optional comparator function. パラメータ comparator 比 ... ャストして使います。 つまり、 0.99 や 0.1 といった値は整数値 0 にキャストされ、 値が等しいとみなされます。 戻り値 Returns a sorted copy of the deque. 例 例1 Ds\Deque::sorted() example <?php $deque = new \Ds\Deque ([ 4 , 5 , 1 , 3 , 2 ]); print_r ( $dequ ... e -> sorted ()); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Deque Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) 例 ... 2 Ds\Deque::sorted() example using a comparator <?php $deque = new \Ds\Deque ([ 4 , 5 , 1 , 3 , 2 ]); $sorted = $deque -> sorted (function( $ ...
https://man.mtool.work/php/8.3/ds-deque.sorted.html
Ds\Sequence::sorted — Returns a sorted copy | PHP 8.3 11615
Ds\Sequence::sorted (PECL ds >= 1.0.0) Ds\Sequence::sorted — Returns a sorted copy 説明 abstract public function Ds\Sequence::sorted ( callable $comparator = ? ): Ds\Sequence Returns a sorted copy, using an optional comparator function. パラ ... ャストして使います。 つまり、 0.99 や 0.1 といった値は整数値 0 にキャストされ、 値が等しいとみなされます。 戻り値 Returns a sorted copy of the sequence. 例 例1 Ds\Sequence::sorted() example <?php $sequence = new \Ds\Vector ([ 4 , 5 , 1 , 3 , 2 ]); print ... _r ( $sequence -> sorted ()); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Vector Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) ... 例2 Ds\Sequence::sorted() example using a comparator <?php $sequence = new \Ds\Vector ([ 4 , 5 , 1 , 3 , 2 ]); $sorted = $sequence -> sorted (func ...
https://man.mtool.work/php/8.3/ds-sequence.sorted.html
Ds\Set::sorted — Returns a sorted copy | PHP 8.3 11565
Ds\Set::sorted (PECL ds >= 1.0.0) Ds\Set::sorted — Returns a sorted copy 説明 public function Ds\Set::sorted ( callable $comparator = ? ): Ds\Set Returns a sorted copy, using an optional comparator function. パラメータ comparator 比較関数は ... ャストして使います。 つまり、 0.99 や 0.1 といった値は整数値 0 にキャストされ、 値が等しいとみなされます。 戻り値 Returns a sorted copy of the set. 例 例1 Ds\Set::sorted() example <?php $set = new \Ds\Set ([ 4 , 5 , 1 , 3 , 2 ]); print_r ( $set -> sorte ... 上の例の出力は、 たとえば以下のようになります。 Ds\Set Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) 例2 Ds\Set::sorted() example using a comparator <?php $set = new \Ds\Set ([ 4 , 5 , 1 , 3 , 2 ]); $sorted = $set -> sorted (function( $a , $b ... ) { return $b <=> $a ; }); print_r ( $sorted ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Set Object ( [0] => 5 [1] => 4 [2] => 3 [3] => 2 [4] => 1 ) 他のマ ...
https://man.mtool.work/php/8.3/ds-set.sorted.html
Ds\Vector::sorted — Returns a sorted copy | PHP 8.3 11565
Ds\Vector::sorted (PECL ds >= 1.0.0) Ds\Vector::sorted — Returns a sorted copy 説明 public function Ds\Vector::sorted ( callable $comparator = ? ): Ds\Vector Returns a sorted copy, using an optional comparator function. パラメータ comparato ... ャストして使います。 つまり、 0.99 や 0.1 といった値は整数値 0 にキャストされ、 値が等しいとみなされます。 戻り値 Returns a sorted copy of the vector. 例 例1 Ds\Vector::sorted() example <?php $vector = new \Ds\Vector ([ 4 , 5 , 1 , 3 , 2 ]); print_r ( $ ... vector -> sorted ()); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Vector Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) ... 例2 Ds\Vector::sorted() example using a comparator <?php $vector = new \Ds\Vector ([ 4 , 5 , 1 , 3 , 2 ]); $sorted = $vector -> sorted (function ...
https://man.mtool.work/php/8.3/ds-vector.sorted.html
Ds\Map::sorted — Returns a copy, sorted by value | PHP 8.3 10487
Ds\Map::sorted (PECL ds >= 1.0.0) Ds\Map::sorted — Returns a copy, sorted by value 説明 public function Ds\Map::sorted ( callable $comparator = ? ): Ds\Map Returns a copy, sorted by value using an optional comparator function. パラメータ co ... す。 つまり、 0.99 や 0.1 といった値は整数値 0 にキャストされ、 値が等しいとみなされます。 戻り値 Returns a copy of the map, sorted by value. 例 例1 Ds\Map::sort() example <?php $map = new \Ds\Map ([ "a" => 2 , "b" => 3 , "c" => 1 ]); print_r ( $map -> s ... ) 例2 Ds\Map::sort() example using a comparator <?php $map = new \Ds\Map ([ "a" => 2 , "b" => 3 , "c" => 1 ]); // Reverse $sorted = $map -> sorted (function( $a , $b ) { return $b <=> $a ; }); print_r ( $sorted ); ?> 上の例の出力は、 たとえば以下のよう ...
https://man.mtool.work/php/8.3/ds-map.sorted.html
Data Structures | PHP 8.3 8686
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 ... Ds\Sequence::slice — Returns a sub-sequence of a given range Ds\Sequence::sort — Sorts the sequence in-place Ds\Sequence::sorted — Returns a sorted copy Ds\Sequence::sum — Returns the sum of all values in the sequence Ds\Sequence::unshift — Adds value ... irst value Ds\Vector::slice — Returns a sub-vector of a given range Ds\Vector::sort — Sorts the vector in-place Ds\Vector::sorted — Returns a sorted copy Ds\Vector::sum — Returns the sum of all values in the vector Ds\Vector::toArray — Converts the vec ... the first value Ds\Deque::slice — Returns a sub-deque of a given range Ds\Deque::sort — Sorts the deque in-place Ds\Deque::sorted — Returns a sorted copy Ds\Deque::sum — Returns the sum of all values in the deque Ds\Deque::toArray — Converts the deque ...
https://man.mtool.work/php/8.3/book.ds.html
Ds\Map::ksorted — Returns a copy, sorted by key | PHP 8.3 8568
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.99 や 0.1 といった値は整数値 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 ()); ?> 上の例の出力は、 たとえば以下のようになります。 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 [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
SolrQuery::getTermsSort — Returns an integer indicating how terms are sorted | ... 7929
SolrQuery::getTermsSort (PECL solr >= 0.9.2) SolrQuery::getTermsSort — Returns an integer indicating how terms are sorted 説明 public function SolrQuery::getTermsSort (): int SolrQuery::TERMS_SORT_INDEX indicates that the terms are returned ... by index order. SolrQuery::TERMS_SORT_COUNT implies that the terms are sorted by term frequency (highest count first) パラメータ この関数にはパラメータはありません。 戻り値 Returns an integer on succe ...
https://man.mtool.work/php/8.3/solrquery.gettermssort.html
SolrQuery::addSortField — Used to control how the results should be sorted | PH... 7895
SolrQuery::addSortField (PECL solr >= 0.9.2) SolrQuery::addSortField — Used to control how the results should be sorted 説明 public function SolrQuery::addSortField ( string $field , int $order = SolrQuery::ORDER_DESC ): SolrQuery Used to c ... ontrol how the results should be sorted. パラメータ field The name of the field order The sort direction. This should be either SolrQuery::ORDER_ASC or SolrQuery: ...
https://man.mtool.work/php/8.3/solrquery.addsortfield.html
The Map class | PHP 8.3 7777
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 ... ion slice ( int $index , int $length = ? ): Ds\Map public function sort ( callable $comparator = ? ): void public function sorted ( callable $comparator = ? ): Ds\Map public function sum (): int | float public function toArray (): array public function ... 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
PREV 1 2 3 NEXT