« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 23 for 並べ替え (0.007 sec.)
Collator::sort — 指定した collator で配列を並べ替える | PHP 8.3 13807
Collator::sort collator_sort (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::sort -- collator_sort — 指定した collator で配列を並べ替える 説明 オブジェクト指向型 public function Collator::sort ( array &$array , int $flags = Col ... or $object , array &$array , int $flags = Collator::SORT_REGULAR ): bool この関数は、現在のロケールの規則にもとづいて配列を並べ替えます。 PHP の標準関数 sort() と同等です。 パラメータ object Collator オブジェクト。 array 並べ替えたい文字列の配列。 flags オ ... プションの並べ替え方式。以下のいずれか。 Collator::SORT_REGULAR - 通常の比較 (型を変更しない) Collator::SORT_NUMERIC - 数値としての比較 Collat ... or::SORT_STRING - 文字列としての比較 デフォルトの並べ替え方式は Collator::SORT_REGULAR です。 flags に無効な値を指定した場合もこの方式を使います。 戻り値 成功した場合に true を、失敗 ...
https://man.mtool.work/php/8.3/collator.sort.html
Collator::asort — インデックスの情報を保持しつつ配列を並べ替える | PHP 8.3 12266
Collator::asort collator_asort (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::asort -- collator_asort — インデックスの情報を保持しつつ配列を並べ替える 説明 オブジェクト指向型 public function Collator::asort ( array &$array , i ... ject , array &$array , int $flags = Collator::SORT_REGULAR ): bool この関数は、インデックスと値の関係を保持したうえで配列を並べ替えます。 これを主に使用するのは、実際の並び順も重要となる連想配列です。 配列の要素には、現在のロケールの規則にしたがった並び順 ... が適用されます。 PHP の標準関数 asort() と同等です。 パラメータ object Collator オブジェクト。 array 並べ替えたい文字列の配列。 flags オプションの並べ替え方式。以下のいずれか。 Collator::SORT_REGULAR - 通常の比較 (型を変更しない) Col ... '100', )array ( 'a' => '100', 'b' => '50', 'c' => '7', ) 参考 Collator の定数 collator_sort() - 指定した collator で配列を並べ替える collator_sort_with_sort_keys() - 指定した collator とキーで配列を並べ替える 他のマニュアルの関連ページ Linux JM sort(1) L ...
https://man.mtool.work/php/8.3/collator.asort.html
Collator::sortWithSortKeys — 指定した collator とキーで配列を並べ替える | PHP 8... 11243
Collator::sortWithSortKeys collator_sort_with_sort_keys (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::sortWithSortKeys -- collator_sort_with_sort_keys — 指定した collator とキーで配列を並べ替える 説明 オブジェクト指向型 publi ... が作成した ICU ソートキーを用いることで 大きな配列をより高速に処理できます。 パラメータ object Collator オブジェクト。 array 並べ替えたい文字列の配列。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 collator_sort_with_sort_keys() の ... ます。 array ( 0 => 'Kopfe', 1 => 'Kypper', 2 => 'Köpfe', ) 参考 Collator の定数 collator_sort() - 指定した collator で配列を並べ替える collator_asort() - インデックスの情報を保持しつつ配列を並べ替える 他のマニュアルの関連ページ Linux JM sort(1) Python json ...
https://man.mtool.work/php/8.3/collator.sortwithsortkeys.html
Collator クラス | PHP 8.3 8981
Collator クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) はじめに 各ロケール固有の並び順を考慮した文字列の比較機能を提供します。 クラス概要 class Collator { /* 定数 */ public const int DEFAULT_VALUE ; public const int PRIMARY ; pu ... thSortKeys ( array &$array ): bool } 定義済み定数 Collator::FRENCH_COLLATION int 文字列の後に続くさまざまなアクセントによる並べ替えを行います。 この属性は、フランス語などの一部のロケールでは自動的に On となります。 通常は、この属性を明示的に設定する必要は ... 名前ですが、"強度" と呼ばれることもあります)。 これらのカテゴリを用いることで、ICU は、 各地域の規約にあわせた適切な文字列の並べ替えを正確に行えるようになります。 また、各段階を選択して採用することで、 テキスト内の文字列検索をさまざまな条件で行うことも可能 ... t 変更履歴 バージョン 説明 8.4.0 クラス定数が型付けされました。 目次 Collator::asort — インデックスの情報を保持しつつ配列を並べ替える Collator::compare — ふたつの Unicode 文字列を比較する Collator::__construct — collator を作成する Collator::create — coll ...
https://man.mtool.work/php/8.3/class.collator.html
ArrayObject::asort — 値でエントリをソートする | PHP 8.3 8361
ArrayObject::asort (PHP 5 >= 5.2.0, PHP 7, PHP 8) ArrayObject::asort — 値でエントリをソートする 説明 public function ArrayObject::asort ( int $flags = SORT_REGULAR ): true エントリを昇順にソートします。 キーとそれに対応する値の関連は保持され ... key = $val \n" ; } ?> 上の例の出力は以下となります。 c = apple b = banana d = lemon a = orange フルーツがアルファベット順で並べ替えられ、 各エントリに対応するキーもそれにあわせて並べ替えられます。 参考 ArrayObject::ksort() - キーでエントリをソートする Arr ...
https://man.mtool.work/php/8.3/arrayobject.asort.html
Collator::setStrength — 照合強度を設定する | PHP 8.3 8361
Collator::setStrength collator_set_strength (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Collator::setStrength -- collator_set_strength — 照合強度を設定する 説明 オブジェクト指向型 public function Collator::setStrength ( int $strength ... 名前ですが、"強度" と呼ばれることもあります)。 これらのカテゴリを用いることで、ICU は、 各地域の規約にあわせた適切な文字列の並べ替えを正確に行えるようになります。 また、各段階を選択して採用することで、 テキスト内の文字列検索をさまざまな条件で行うことも可能 ... _strength() の例 <?php $arr = array( 'aò' , 'Ao' , 'ao' ); $coll = collator_create ( 'en_US' ); // デフォルトの強度で配列を並べ替えます collator_sort ( $coll , $arr ); var_export ( $arr ); // 第一段階の強度で配列を並べ替えます collator_set_strength ( $col ...
https://man.mtool.work/php/8.3/collator.setstrength.html
Collator::getSortKey — 文字列のソート用のキーを取得する | PHP 8.3 8160
Collator::getSortKey collator_get_sort_key (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 1.0.3) Collator::getSortKey -- collator_get_sort_key — 文字列のソート用のキーを取得する 説明 オブジェクト指向型 public function Collator::getSortKey ( st ... n" 'linked_account' => string(33) "https://phpc.social/users/Synchro" } } 参考 collator_sort() - 指定した collator で配列を並べ替える collator_sort_with_sort_keys() - 指定した collator とキーで配列を並べ替える 他のマニュアルの関連ページ Linux JM sort(1) L ...
https://man.mtool.work/php/8.3/collator.getsortkey.html
sort — 配列を昇順にソートする | PHP 8.3 8160
sort (PHP 4, PHP 5, PHP 7, PHP 8) sort — 配列を昇順にソートする 説明 function sort ( array &$array , int $flags = SORT_REGULAR ): true array を値で昇順にソートします。 注意 : 比較結果が等しくなる二つの要素があった場合、それらの並び順は保持さ ... れらの並び順は不定でした。 注意 : この関数は、 array パラメータの要素に対して新しいキーを割り当てます。 その際、単純にキーを並べ替える代わりに、 すでに割り当てられている既存のキーを削除してしまいます。 注意 : この関数をコールすると、配列の内部ポインタは最初 ... emon fruits[3] = orange fruits はアルファベットの昇順にソートされました。 例2 sort() で、大文字小文字を区別せずに自然順での並べ替えを行う例 <?php $fruits = array( "Orange1" , "orange2" , "Orange3" , "orange20" ); sort ( $fruits , SORT_NATURAL | SORT_FLAG_ ...
https://man.mtool.work/php/8.3/function.sort.html
Locale::composeLocale — 正しく並べ替えて区切られたロケール ID を返す | PHP 8.3 8160
Locale::composeLocale locale_compose (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0) Locale::composeLocale -- locale_compose — 正しく並べ替えて区切られたロケール ID を返す 説明 オブジェクト指向型 public static function Locale::composeLoc ... ale ( array $subtags ): string | false 手続き型 function locale_compose ( array $subtags ): string | false 正しく並べ替えて区切られたロケール ID を返します。 キーが特定のロケール ID サブタグを表し、 サブタグの値がそのキーに対応する値となります。 ...
https://man.mtool.work/php/8.3/locale.composelocale.html
array_column — 入力配列から単一のカラムの値を返す | PHP 8.3 7842
array_column (PHP 5 >= 5.5.0, PHP 7, PHP 8) array_column — 入力配列から単一のカラムの値を返す 説明 function array_column ( array $array , int | string | null $column_key , int | string | null $index_key = null ): array array_column() は、 配 ... 列のキーやプロパティの名前を指定することもできます。 null を指定すると、行全体を返します ( index_key との組み合わせで、配列の並べ替えをするときに便利です)。 index_key 返す配列のインデックス/キーとして使うカラム。 カラム番号を表す整数値、あるいはキーの名前を ... の出力は以下となります。 Array ( [0] => John [1] => Sally [2] => Jane [3] => Peter ) 例2 レコードセットから姓を取得し、"id"で並べ替える例 <?php // 先ほどの例と同じ $records 配列を使います $records = [ [ 'id' => 2135 , 'first_name' => 'John' , 'last_name' => ...
https://man.mtool.work/php/8.3/function.array-column.html
PREV 1 2 3 NEXT