reference/array/functions/array-unique.xml
3ba15fd3dfb8196a1762b1a21a14311e0279284b
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>array</type><methodname>array_unique</methodname>
13
13
<methodparam><type>array</type><parameter>array</parameter></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter><initializer>SORT_STRING</initializer></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_STRING</constant></initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Takes an input <parameter>array</parameter> and returns a new array
...
...
@@ -19,7 +19,7 @@
19
19
</para>
20
20
<para>
21
21
Note that keys are preserved. If multiple elements compare equal under
22
-
the given <parameter>sort_flags</parameter>, then the key and value of
22
+
the given <parameter>flags</parameter>, then the key and value of
23
23
the first equal element will be retained.
24
24
</para>
25
25
<note>
...
...
@@ -44,14 +44,14 @@
44
44
</listitem>
45
45
</varlistentry>
46
46
<varlistentry>
47
-
<term><parameter>sort_flags</parameter></term>
47
+
<term><parameter>flags</parameter></term>
48
48
<listitem>
49
49
<para>
50
-
The optional second parameter <parameter>sort_flags</parameter>
51
-
may be used to modify the sorting behavior using these values:
50
+
The optional second parameter <parameter>flags</parameter>
51
+
may be used to modify the comparison behavior using these values:
52
52
</para>
53
53
<para>
54
-
Sorting type flags:
54
+
Comparison type flags:
55
55
<itemizedlist>
56
56
<listitem>
57
57
<simpara><constant>SORT_REGULAR</constant> - compare items normally
...
...
@@ -98,7 +98,7 @@
98
98
<row>
99
99
<entry>7.2.0</entry>
100
100
<entry>
101
-
If <parameter>sort_flags</parameter> is <constant>SORT_STRING</constant>,
101
+
If <parameter>flags</parameter> is <constant>SORT_STRING</constant>,
102
102
formerly <parameter>array</parameter> has been copied and non-unique
103
103
elements have been removed (without packing the array afterwards), but
104
104
now a new array is built by adding the unique elements. This can result
...
...
@@ -163,15 +163,6 @@ array(2) {
163
163
</para>
164
164
</refsect1>
165
165

166
-
<refsect1 role="seealso">
167
-
&reftitle.seealso;
168
-
<para>
169
-
<simplelist>
170
-
<member><function>array_count_values</function></member>
171
-
</simplelist>
172
-
</para>
173
-
</refsect1>
174
-

175
166
<refsect1 role="notes">
176
167
&reftitle.notes;
177
168
<note>
...
...
@@ -182,8 +173,16 @@ array(2) {
182
173
</note>
183
174
</refsect1>
184
175

185
-
</refentry>
176
+
<refsect1 role="seealso">
177
+
&reftitle.seealso;
178
+
<para>
179
+
<simplelist>
180
+
<member><function>array_count_values</function></member>
181
+
</simplelist>
182
+
</para>
183
+
</refsect1>
186
184

185
+
</refentry>
187
186
<!-- Keep this comment at the end of the file
188
187
Local variables:
189
188
mode: sgml
190
189