reference/array/constants.xml
5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c
...
...
@@ -8,27 +8,29 @@
8
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
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>
...
...
@@ -40,7 +42,7 @@
40
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>
...
...
@@ -52,7 +54,7 @@
52
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>
...
...
@@ -69,7 +71,7 @@
69
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>
...
...
@@ -80,7 +82,7 @@
80
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>
...
...
@@ -91,7 +93,7 @@
91
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>
...
...
@@ -102,48 +104,78 @@
102
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.
111
113
</simpara>
112
114
</listitem>
113
115
</varlistentry>
114
116
<varlistentry xml:id="constant.sort-natural">
115
117
<term>
116
118
<constant>SORT_NATURAL</constant>
117
-
(<type>integer</type>)
119
+
(<type>int</type>)
118
120
</term>
119
121
<listitem>
120
122
<simpara>
121
123
<constant>SORT_NATURAL</constant> is used to compare items as
122
-
strings using "natural ordering" like <function>natsort</function>. Added in PHP 5.4.0.
124
+
strings using "natural ordering" like <function>natsort</function>.
123
125
</simpara>
124
126
</listitem>
125
127
</varlistentry>
126
128
<varlistentry xml:id="constant.sort-flag-case">
127
129
<term>
128
130
<constant>SORT_FLAG_CASE</constant>
129
-
(<type>integer</type>)
131
+
(<type>int</type>)
130
132
</term>
131
133
<listitem>
132
134
<simpara>
133
-
<constant>SORT_FLAG_CASE</constant> can be combined
134
-
(bitwise OR) with
135
-
<constant>SORT_STRING</constant> or
136
-
<constant>SORT_NATURAL</constant> to sort strings case-insensitively. Added in PHP 5.4.0.
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.
137
139
</simpara>
138
140
</listitem>
139
141
</varlistentry>
140
142
</variablelist>
141
143
</para>
144
+

145
+
<para> Filter flags:
146
+
<variablelist>
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
+

142
174
<variablelist>
143
175
<varlistentry xml:id="constant.count-normal">
144
176
<term>
145
177
<constant>COUNT_NORMAL</constant>
146
-
(<type>integer</type>)
178
+
(<type>int</type>)
147
179
</term>
148
180
<listitem>
149
181
<simpara>
...
...
@@ -154,7 +186,7 @@
154
186
<varlistentry xml:id="constant.count-recursive">
155
187
<term>
156
188
<constant>COUNT_RECURSIVE</constant>
157
-
(<type>integer</type>)
189
+
(<type>int</type>)
158
190
</term>
159
191
<listitem>
160
192
<simpara>
...
...
@@ -165,7 +197,7 @@
165
197
<varlistentry xml:id="constant.extr-overwrite">
166
198
<term>
167
199
<constant>EXTR_OVERWRITE</constant>
168
-
(<type>integer</type>)
200
+
(<type>int</type>)
169
201
</term>
170
202
<listitem>
171
203
<simpara>
...
...
@@ -176,7 +208,7 @@
176
208
<varlistentry xml:id="constant.extr-skip">
177
209
<term>
178
210
<constant>EXTR_SKIP</constant>
179
-
(<type>integer</type>)
211
+
(<type>int</type>)
180
212
</term>
181
213
<listitem>
182
214
<simpara>
...
...
@@ -187,7 +219,7 @@
187
219
<varlistentry xml:id="constant.extr-prefix-same">
188
220
<term>
189
221
<constant>EXTR_PREFIX_SAME</constant>
190
-
(<type>integer</type>)
222
+
(<type>int</type>)
191
223
</term>
192
224
<listitem>
193
225
<simpara>
...
...
@@ -198,7 +230,7 @@
198
230
<varlistentry xml:id="constant.extr-prefix-all">
199
231
<term>
200
232
<constant>EXTR_PREFIX_ALL</constant>
201
-
(<type>integer</type>)
233
+
(<type>int</type>)
202
234
</term>
203
235
<listitem>
204
236
<simpara>
...
...
@@ -209,7 +241,7 @@
209
241
<varlistentry xml:id="constant.extr-prefix-invalid">
210
242
<term>
211
243
<constant>EXTR_PREFIX_INVALID</constant>
212
-
(<type>integer</type>)
244
+
(<type>int</type>)
213
245
</term>
214
246
<listitem>
215
247
<simpara>
...
...
@@ -220,7 +252,7 @@
220
252
<varlistentry xml:id="constant.extr-prefix-if-exists">
221
253
<term>
222
254
<constant>EXTR_PREFIX_IF_EXISTS</constant>
223
-
(<type>integer</type>)
255
+
(<type>int</type>)
224
256
</term>
225
257
<listitem>
226
258
<simpara>
...
...
@@ -231,7 +263,7 @@
231
263
<varlistentry xml:id="constant.extr-if-exists">
232
264
<term>
233
265
<constant>EXTR_IF_EXISTS</constant>
234
-
(<type>integer</type>)
266
+
(<type>int</type>)
235
267
</term>
236
268
<listitem>
237
269
<simpara>
...
...
@@ -242,7 +274,7 @@
242
274
<varlistentry xml:id="constant.extr-refs">
243
275
<term>
244
276
<constant>EXTR_REFS</constant>
245
-
(<type>integer</type>)
277
+
(<type>int</type>)
246
278
</term>
247
279
<listitem>
248
280
<simpara>
...
...
@@ -252,7 +284,6 @@
252
284
</varlistentry>
253
285
</variablelist>
254
286
</appendix>
255
-

256
287
<!-- Keep this comment at the end of the file
257
288
Local variables:
258
289
mode: sgml
259
290