reference/array/constants.xml
5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c
...
...
@@ -5,30 +5,32 @@
5
5
&extension.constants.core;
6
6
<para>
7
7
<variablelist>
8
-
<varlistentry>
8
+
<varlistentry xml:id="constant.case-lower">
9
9
<term>
10
10
<constant>CASE_LOWER</constant>
11
-
(<type>integer</type>)
11
+
(<type>int</type>)
12
12
</term>
13
13
<listitem>
14
14
<simpara>
15
15
<constant>CASE_LOWER</constant> is used with
16
16
<function>array_change_key_case</function> and is used to convert array
17
17
keys to lower case. This is also the default case for
18
-
<function>array_change_key_case</function>.
18
+
<function>array_change_key_case</function>. As of PHP 8.2.0, only ASCII
19
+
characters will be converted.
19
20
</simpara>
20
21
</listitem>
21
22
</varlistentry>
22
-
<varlistentry>
23
+
<varlistentry xml:id="constant.case-upper">
23
24
<term>
24
25
<constant>CASE_UPPER</constant>
25
-
(<type>integer</type>)
26
+
(<type>int</type>)
26
27
</term>
27
28
<listitem>
28
29
<simpara>
29
30
<constant>CASE_UPPER</constant> is used with
30
31
<function>array_change_key_case</function> and is used to convert array
31
-
keys to upper case.
32
+
keys to upper case. As of PHP 8.2.0, only ASCII characters will be
33
+
converted.
32
34
</simpara>
33
35
</listitem>
34
36
</varlistentry>
...
...
@@ -37,10 +39,10 @@
37
39

38
40
<para> Sorting order flags:
39
41
<variablelist>
40
-
<varlistentry>
42
+
<varlistentry xml:id="constant.sort-asc">
41
43
<term>
42
44
<constant>SORT_ASC</constant>
43
-
(<type>integer</type>)
45
+
(<type>int</type>)
44
46
</term>
45
47
<listitem>
46
48
<simpara>
...
...
@@ -49,10 +51,10 @@
49
51
</simpara>
50
52
</listitem>
51
53
</varlistentry>
52
-
<varlistentry>
54
+
<varlistentry xml:id="constant.sort-desc">
53
55
<term>
54
56
<constant>SORT_DESC</constant>
55
-
(<type>integer</type>)
57
+
(<type>int</type>)
56
58
</term>
57
59
<listitem>
58
60
<simpara>
...
...
@@ -66,10 +68,10 @@
66
68

67
69
<para> Sorting type flags: used by various sort functions
68
70
<variablelist>
69
-
<varlistentry>
71
+
<varlistentry xml:id="constant.sort-regular">
70
72
<term>
71
73
<constant>SORT_REGULAR</constant>
72
-
(<type>integer</type>)
74
+
(<type>int</type>)
73
75
</term>
74
76
<listitem>
75
77
<simpara>
...
...
@@ -77,10 +79,10 @@
77
79
</simpara>
78
80
</listitem>
79
81
</varlistentry>
80
-
<varlistentry>
82
+
<varlistentry xml:id="constant.sort-numeric">
81
83
<term>
82
84
<constant>SORT_NUMERIC</constant>
83
-
(<type>integer</type>)
85
+
(<type>int</type>)
84
86
</term>
85
87
<listitem>
86
88
<simpara>
...
...
@@ -88,10 +90,10 @@
88
90
</simpara>
89
91
</listitem>
90
92
</varlistentry>
91
-
<varlistentry>
93
+
<varlistentry xml:id="constant.sort-string">
92
94
<term>
93
95
<constant>SORT_STRING</constant>
94
-
(<type>integer</type>)
96
+
(<type>int</type>)
95
97
</term>
96
98
<listitem>
97
99
<simpara>
...
...
@@ -99,25 +101,81 @@
99
101
</simpara>
100
102
</listitem>
101
103
</varlistentry>
102
-
<varlistentry>
104
+
<varlistentry xml:id="constant.sort-locale-string">
103
105
<term>
104
106
<constant>SORT_LOCALE_STRING</constant>
105
-
(<type>integer</type>)
107
+
(<type>int</type>)
106
108
</term>
107
109
<listitem>
108
110
<simpara>
109
111
<constant>SORT_LOCALE_STRING</constant> is used to compare items as
110
-
strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2.
112
+
strings, based on the current locale.
113
+
</simpara>
114
+
</listitem>
115
+
</varlistentry>
116
+
<varlistentry xml:id="constant.sort-natural">
117
+
<term>
118
+
<constant>SORT_NATURAL</constant>
119
+
(<type>int</type>)
120
+
</term>
121
+
<listitem>
122
+
<simpara>
123
+
<constant>SORT_NATURAL</constant> is used to compare items as
124
+
strings using "natural ordering" like <function>natsort</function>.
125
+
</simpara>
126
+
</listitem>
127
+
</varlistentry>
128
+
<varlistentry xml:id="constant.sort-flag-case">
129
+
<term>
130
+
<constant>SORT_FLAG_CASE</constant>
131
+
(<type>int</type>)
132
+
</term>
133
+
<listitem>
134
+
<simpara>
135
+
<constant>SORT_FLAG_CASE</constant> can be combined (bitwise OR) with
136
+
<constant>SORT_STRING</constant> or <constant>SORT_NATURAL</constant> to
137
+
sort strings case-insensitively. As of PHP 8.2.0, only ASCII case folding
138
+
will be done.
111
139
</simpara>
112
140
</listitem>
113
141
</varlistentry>
114
142
</variablelist>
115
143
</para>
144
+

145
+
<para> Filter flags:
116
146
<variablelist>
117
-
<varlistentry>
147
+
<varlistentry xml:id="constant.array-filter-use-key">
148
+
<term>
149
+
<constant>ARRAY_FILTER_USE_KEY</constant>
150
+
(<type>int</type>)
151
+
</term>
152
+
<listitem>
153
+
<simpara>
154
+
<constant>ARRAY_FILTER_USE_KEY</constant> is used with
155
+
<function>array_filter</function> to pass each key as the first argument to the given callback function.
156
+
</simpara>
157
+
</listitem>
158
+
</varlistentry>
159
+
<varlistentry xml:id="constant.array-filter-use-both">
160
+
<term>
161
+
<constant>ARRAY_FILTER_USE_BOTH</constant>
162
+
(<type>int</type>)
163
+
</term>
164
+
<listitem>
165
+
<simpara>
166
+
<constant>ARRAY_FILTER_USE_BOTH</constant> is used with
167
+
<function>array_filter</function> to pass both value and key to the given callback function.
168
+
</simpara>
169
+
</listitem>
170
+
</varlistentry>
171
+
</variablelist>
172
+
</para>
173
+

174
+
<variablelist>
175
+
<varlistentry xml:id="constant.count-normal">
118
176
<term>
119
177
<constant>COUNT_NORMAL</constant>
120
-
(<type>integer</type>)
178
+
(<type>int</type>)
121
179
</term>
122
180
<listitem>
123
181
<simpara>
...
...
@@ -125,10 +183,10 @@
125
183
</simpara>
126
184
</listitem>
127
185
</varlistentry>
128
-
<varlistentry>
186
+
<varlistentry xml:id="constant.count-recursive">
129
187
<term>
130
188
<constant>COUNT_RECURSIVE</constant>
131
-
(<type>integer</type>)
189
+
(<type>int</type>)
132
190
</term>
133
191
<listitem>
134
192
<simpara>
...
...
@@ -136,10 +194,10 @@
136
194
</simpara>
137
195
</listitem>
138
196
</varlistentry>
139
-
<varlistentry>
197
+
<varlistentry xml:id="constant.extr-overwrite">
140
198
<term>
141
199
<constant>EXTR_OVERWRITE</constant>
142
-
(<type>integer</type>)
200
+
(<type>int</type>)
143
201
</term>
144
202
<listitem>
145
203
<simpara>
...
...
@@ -147,10 +205,10 @@
147
205
</simpara>
148
206
</listitem>
149
207
</varlistentry>
150
-
<varlistentry>
208
+
<varlistentry xml:id="constant.extr-skip">
151
209
<term>
152
210
<constant>EXTR_SKIP</constant>
153
-
(<type>integer</type>)
211
+
(<type>int</type>)
154
212
</term>
155
213
<listitem>
156
214
<simpara>
...
...
@@ -158,10 +216,10 @@
158
216
</simpara>
159
217
</listitem>
160
218
</varlistentry>
161
-
<varlistentry>
219
+
<varlistentry xml:id="constant.extr-prefix-same">
162
220
<term>
163
221
<constant>EXTR_PREFIX_SAME</constant>
164
-
(<type>integer</type>)
222
+
(<type>int</type>)
165
223
</term>
166
224
<listitem>
167
225
<simpara>
...
...
@@ -169,10 +227,10 @@
169
227
</simpara>
170
228
</listitem>
171
229
</varlistentry>
172
-
<varlistentry>
230
+
<varlistentry xml:id="constant.extr-prefix-all">
173
231
<term>
174
232
<constant>EXTR_PREFIX_ALL</constant>
175
-
(<type>integer</type>)
233
+
(<type>int</type>)
176
234
</term>
177
235
<listitem>
178
236
<simpara>
...
...
@@ -180,10 +238,10 @@
180
238
</simpara>
181
239
</listitem>
182
240
</varlistentry>
183
-
<varlistentry>
241
+
<varlistentry xml:id="constant.extr-prefix-invalid">
184
242
<term>
185
243
<constant>EXTR_PREFIX_INVALID</constant>
186
-
(<type>integer</type>)
244
+
(<type>int</type>)
187
245
</term>
188
246
<listitem>
189
247
<simpara>
...
...
@@ -191,10 +249,10 @@
191
249
</simpara>
192
250
</listitem>
193
251
</varlistentry>
194
-
<varlistentry>
252
+
<varlistentry xml:id="constant.extr-prefix-if-exists">
195
253
<term>
196
254
<constant>EXTR_PREFIX_IF_EXISTS</constant>
197
-
(<type>integer</type>)
255
+
(<type>int</type>)
198
256
</term>
199
257
<listitem>
200
258
<simpara>
...
...
@@ -202,10 +260,10 @@
202
260
</simpara>
203
261
</listitem>
204
262
</varlistentry>
205
-
<varlistentry>
263
+
<varlistentry xml:id="constant.extr-if-exists">
206
264
<term>
207
265
<constant>EXTR_IF_EXISTS</constant>
208
-
(<type>integer</type>)
266
+
(<type>int</type>)
209
267
</term>
210
268
<listitem>
211
269
<simpara>
...
...
@@ -213,10 +271,10 @@
213
271
</simpara>
214
272
</listitem>
215
273
</varlistentry>
216
-
<varlistentry>
274
+
<varlistentry xml:id="constant.extr-refs">
217
275
<term>
218
276
<constant>EXTR_REFS</constant>
219
-
(<type>integer</type>)
277
+
(<type>int</type>)
220
278
</term>
221
279
<listitem>
222
280
<simpara>
...
...
@@ -226,7 +284,6 @@
226
284
</varlistentry>
227
285
</variablelist>
228
286
</appendix>
229
-

230
287
<!-- Keep this comment at the end of the file
231
288
Local variables:
232
289
mode: sgml
...
...
@@ -247,4 +304,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
247
304
vim: et tw=78 syn=sgml
248
305
vi: ts=1 sw=1
249
306
-->
250
-

251
307