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,38 +104,38 @@
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 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>
...
...
@@ -145,26 +147,24 @@
145
147
<varlistentry xml:id="constant.array-filter-use-key">
146
148
<term>
147
149
<constant>ARRAY_FILTER_USE_KEY</constant>
148
-
(<type>integer</type>)
150
+
(<type>int</type>)
149
151
</term>
150
152
<listitem>
151
153
<simpara>
152
154
<constant>ARRAY_FILTER_USE_KEY</constant> is used with
153
155
<function>array_filter</function> to pass each key as the first argument to the given callback function.
154
-
Added in PHP 5.6.0.
155
156
</simpara>
156
157
</listitem>
157
158
</varlistentry>
158
159
<varlistentry xml:id="constant.array-filter-use-both">
159
160
<term>
160
161
<constant>ARRAY_FILTER_USE_BOTH</constant>
161
-
(<type>integer</type>)
162
+
(<type>int</type>)
162
163
</term>
163
164
<listitem>
164
165
<simpara>
165
166
<constant>ARRAY_FILTER_USE_BOTH</constant> is used with
166
167
<function>array_filter</function> to pass both value and key to the given callback function.
167
-
Added in PHP 5.6.0.
168
168
</simpara>
169
169
</listitem>
170
170
</varlistentry>
...
...
@@ -175,7 +175,7 @@
175
175
<varlistentry xml:id="constant.count-normal">
176
176
<term>
177
177
<constant>COUNT_NORMAL</constant>
178
-
(<type>integer</type>)
178
+
(<type>int</type>)
179
179
</term>
180
180
<listitem>
181
181
<simpara>
...
...
@@ -186,7 +186,7 @@
186
186
<varlistentry xml:id="constant.count-recursive">
187
187
<term>
188
188
<constant>COUNT_RECURSIVE</constant>
189
-
(<type>integer</type>)
189
+
(<type>int</type>)
190
190
</term>
191
191
<listitem>
192
192
<simpara>
...
...
@@ -197,7 +197,7 @@
197
197
<varlistentry xml:id="constant.extr-overwrite">
198
198
<term>
199
199
<constant>EXTR_OVERWRITE</constant>
200
-
(<type>integer</type>)
200
+
(<type>int</type>)
201
201
</term>
202
202
<listitem>
203
203
<simpara>
...
...
@@ -208,7 +208,7 @@
208
208
<varlistentry xml:id="constant.extr-skip">
209
209
<term>
210
210
<constant>EXTR_SKIP</constant>
211
-
(<type>integer</type>)
211
+
(<type>int</type>)
212
212
</term>
213
213
<listitem>
214
214
<simpara>
...
...
@@ -219,7 +219,7 @@
219
219
<varlistentry xml:id="constant.extr-prefix-same">
220
220
<term>
221
221
<constant>EXTR_PREFIX_SAME</constant>
222
-
(<type>integer</type>)
222
+
(<type>int</type>)
223
223
</term>
224
224
<listitem>
225
225
<simpara>
...
...
@@ -230,7 +230,7 @@
230
230
<varlistentry xml:id="constant.extr-prefix-all">
231
231
<term>
232
232
<constant>EXTR_PREFIX_ALL</constant>
233
-
(<type>integer</type>)
233
+
(<type>int</type>)
234
234
</term>
235
235
<listitem>
236
236
<simpara>
...
...
@@ -241,7 +241,7 @@
241
241
<varlistentry xml:id="constant.extr-prefix-invalid">
242
242
<term>
243
243
<constant>EXTR_PREFIX_INVALID</constant>
244
-
(<type>integer</type>)
244
+
(<type>int</type>)
245
245
</term>
246
246
<listitem>
247
247
<simpara>
...
...
@@ -252,7 +252,7 @@
252
252
<varlistentry xml:id="constant.extr-prefix-if-exists">
253
253
<term>
254
254
<constant>EXTR_PREFIX_IF_EXISTS</constant>
255
-
(<type>integer</type>)
255
+
(<type>int</type>)
256
256
</term>
257
257
<listitem>
258
258
<simpara>
...
...
@@ -263,7 +263,7 @@
263
263
<varlistentry xml:id="constant.extr-if-exists">
264
264
<term>
265
265
<constant>EXTR_IF_EXISTS</constant>
266
-
(<type>integer</type>)
266
+
(<type>int</type>)
267
267
</term>
268
268
<listitem>
269
269
<simpara>
...
...
@@ -274,7 +274,7 @@
274
274
<varlistentry xml:id="constant.extr-refs">
275
275
<term>
276
276
<constant>EXTR_REFS</constant>
277
-
(<type>integer</type>)
277
+
(<type>int</type>)
278
278
</term>
279
279
<listitem>
280
280
<simpara>
...
...
@@ -284,7 +284,6 @@
284
284
</varlistentry>
285
285
</variablelist>
286
286
</appendix>
287
-

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