reference/spl/arrayobject/asort.xml
2ca090342977839edca2f7f4e52305a1b5da6095
...
...
@@ -7,27 +7,52 @@
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<modifier>public</modifier> <type>void</type><methodname>ArrayObject::asort</methodname>
12
-
<void/>
10
+
<methodsynopsis role="ArrayObject">
11
+
<modifier>public</modifier> <type>true</type><methodname>ArrayObject::asort</methodname>
12
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>SORT_REGULAR</constant></initializer></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
-
Sorts the entries such that the keys maintain
16
-
their correlation with the entries they are associated
17
-
with. This is used mainly when sorting associative arrays where
18
-
the actual element order is significant.
15
+
Sorts the entries in ascending order,
16
+
such that its keys maintain their correlation with the values they
17
+
are associated with.
19
18
</para>
19
+
<para>
20
+
This is used mainly when sorting associative arrays where the actual
21
+
element order is significant.
22
+
</para>
23
+
&note.sort-unstable;
20
24
</refsect1>
21
25

22
26
<refsect1 role="parameters">
23
27
&reftitle.parameters;
24
-
&no.function.parameters;
28
+
<variablelist>
29
+
&sort.flags.parameter;
30
+
</variablelist>
25
31
</refsect1>
26
32

27
33
<refsect1 role="returnvalues">
28
34
&reftitle.returnvalues;
29
35
<para>
30
-
&return.void;
36
+
&return.true.always;
37
+
</para>
38
+
</refsect1>
39
+

40
+
<refsect1 role="changelog">
41
+
&reftitle.changelog;
42
+
<para>
43
+
<informaltable>
44
+
<tgroup cols="2">
45
+
<thead>
46
+
<row>
47
+
<entry>&Version;</entry>
48
+
<entry>&Description;</entry>
49
+
</row>
50
+
</thead>
51
+
<tbody>
52
+
&return.type.true;
53
+
</tbody>
54
+
</tgroup>
55
+
</informaltable>
31
56
</para>
32
57
</refsect1>
33
58

...
...
@@ -75,12 +100,12 @@ a = orange
75
100
<member><methodname>ArrayObject::natcasesort</methodname></member>
76
101
<member><methodname>ArrayObject::uasort</methodname></member>
77
102
<member><methodname>ArrayObject::uksort</methodname></member>
103
+
<member><function>asort</function></member>
78
104
</simplelist>
79
105
</para>
80
106
</refsect1>
81
107

82
108
</refentry>
83
-

84
109
<!-- Keep this comment at the end of the file
85
110
Local variables:
86
111
mode: sgml
...
...
@@ -101,4 +126,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
101
126
vim: et tw=78 syn=sgml
102
127
vi: ts=1 sw=1
103
128
-->
104
-

105
129