mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
sort functions return true or false
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147340 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
75d391e299
commit
313b98ba94
9 changed files with 45 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.arsort">
|
||||
<refnamediv>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>arsort</methodname>
|
||||
<type>bool</type><methodname>arsort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -21,6 +21,9 @@
|
|||
with. This is used mainly when sorting associative arrays where
|
||||
the actual element order is significant.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<example>
|
||||
<title><function>arsort</function> example</title>
|
||||
<programlisting role="php">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.asort">
|
||||
<refnamediv>
|
||||
|
@ -9,7 +9,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>asort</methodname>
|
||||
<type>bool</type><methodname>asort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -19,6 +19,9 @@
|
|||
with. This is used mainly when sorting associative arrays where
|
||||
the actual element order is significant.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<example>
|
||||
<title><function>asort</function> example</title>
|
||||
<programlisting role="php">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.krsort">
|
||||
<refnamediv>
|
||||
|
@ -9,7 +9,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>krsort</methodname>
|
||||
<type>bool</type><methodname>krsort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -17,6 +17,9 @@
|
|||
Sorts an array by key in reverse order, maintaining key to data
|
||||
correlations. This is useful mainly for associative arrays.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>krsort</function> example</title>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.ksort">
|
||||
<refnamediv>
|
||||
|
@ -9,7 +9,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>int</type><methodname>ksort</methodname>
|
||||
<type>bool</type><methodname>ksort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -17,6 +17,9 @@
|
|||
Sorts an array by key, maintaining key to data correlations. This
|
||||
is useful mainly for associative arrays.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ksort</function> example</title>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.rsort">
|
||||
<refnamediv>
|
||||
|
@ -9,13 +9,16 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>rsort</methodname>
|
||||
<type>bool</type><methodname>rsort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function sorts an array in reverse order (highest to lowest).
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>rsort</function> example</title>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.sort">
|
||||
<refnamediv>
|
||||
|
@ -9,7 +9,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>sort</methodname>
|
||||
<type>bool</type><methodname>sort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sort_flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -17,6 +17,9 @@
|
|||
This function sorts an array. Elements will be arranged from
|
||||
lowest to highest when this function has completed.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>sort</function> example</title>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.uasort">
|
||||
<refnamediv>
|
||||
|
@ -12,7 +12,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>uasort</methodname>
|
||||
<type>bool</type><methodname>uasort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam><type>callback</type><parameter>cmp_function</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -23,6 +23,9 @@
|
|||
the actual element order is significant. The comparison function
|
||||
is user-defined.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Please see <function>usort</function> and
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.uksort">
|
||||
<refnamediv>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>uksort</methodname>
|
||||
<type>bool</type><methodname>uksort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam><type>callback</type><parameter>cmp_function</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -29,6 +29,9 @@
|
|||
be respectively less than, equal to, or greater than the
|
||||
second.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>uksort</function> example</title>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.usort">
|
||||
<refnamediv>
|
||||
|
@ -11,7 +11,7 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>usort</methodname>
|
||||
<type>bool</type><methodname>usort</methodname>
|
||||
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
||||
<methodparam><type>callback</type><parameter>cmp_function</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
|
@ -37,6 +37,9 @@
|
|||
</para>
|
||||
</note>
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>usort</function> example</title>
|
||||
|
|
Loading…
Reference in a new issue