@@ -58,80 +58,6 @@ function array_flip(array $array): array
58
58
}
59
59
60
60
61
- /**
62
- * array_multisort can be used to sort several
63
- * arrays at once, or a multi-dimensional array by one or more
64
- * dimensions.
65
- *
66
- * Associative (string) keys will be maintained, but numeric
67
- * keys will be re-indexed.
68
- *
69
- * @param array $array1 An array being sorted.
70
- * @param array|int $array1_sort_order The order used to sort the previous array argument. Either
71
- * SORT_ASC to sort ascendingly or SORT_DESC
72
- * to sort descendingly.
73
- *
74
- * This argument can be swapped with array1_sort_flags
75
- * or omitted entirely, in which case SORT_ASC is assumed.
76
- * @param array|int $array1_sort_flags Sort options for the previous array argument:
77
- *
78
- * Sorting type flags:
79
- *
80
- *
81
- * SORT_REGULAR - compare items normally
82
- * (don't change types)
83
- *
84
- *
85
- * SORT_NUMERIC - compare items numerically
86
- *
87
- *
88
- * SORT_STRING - compare items as strings
89
- *
90
- *
91
- *
92
- * SORT_LOCALE_STRING - compare items as
93
- * strings, based on the current locale. It uses the locale,
94
- * which can be changed using setlocale
95
- *
96
- *
97
- *
98
- *
99
- * SORT_NATURAL - compare items as strings
100
- * using "natural ordering" like natsort
101
- *
102
- *
103
- *
104
- *
105
- * SORT_FLAG_CASE - can be combined
106
- * (bitwise OR) with
107
- * SORT_STRING or
108
- * SORT_NATURAL to sort strings case-insensitively
109
- *
110
- *
111
- *
112
- *
113
- * This argument can be swapped with array1_sort_order
114
- * or omitted entirely, in which case SORT_REGULAR is assumed.
115
- * @param mixed $params More arrays, optionally followed by sort order and flags. Only elements
116
- * corresponding to equivalent elements in previous arrays are compared.
117
- * In other words, the sort is lexicographical.
118
- * @throws ArrayException
119
- *
120
- */
121
- function array_multisort (array &$ array1 , $ array1_sort_order = SORT_ASC , $ array1_sort_flags = SORT_REGULAR , ...$ params ): void
122
- {
123
- error_clear_last ();
124
- if ($ params !== []) {
125
- $ result = \array_multisort ($ array1 , $ array1_sort_order , $ array1_sort_flags , ...$ params );
126
- } else {
127
- $ result = \array_multisort ($ array1 , $ array1_sort_order , $ array1_sort_flags );
128
- }
129
- if ($ result === false ) {
130
- throw ArrayException::createFromPhpError ();
131
- }
132
- }
133
-
134
-
135
61
/**
136
62
* array_replace_recursive replaces the values of
137
63
* array1 with the same values from all the following
0 commit comments