mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
added constanst, literal and varname tags for cosmetic update
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@157966 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
04981d8312
commit
2bbe2338d4
5 changed files with 24 additions and 24 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.11 -->
|
||||
<refentry id="function.array-multisort">
|
||||
<refnamediv>
|
||||
|
@ -38,10 +38,10 @@
|
|||
Sorting order flags:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>SORT_ASC - sort in ascending order</simpara>
|
||||
<simpara><constant>SORT_ASC</constant> - sort in ascending order</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>SORT_DESC - sort in descending order</simpara>
|
||||
<simpara><constant>SORT_DESC</constant> - sort in descending order</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
|
@ -49,21 +49,21 @@
|
|||
Sorting type flags:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>SORT_REGULAR - compare items normally</simpara>
|
||||
<simpara><constant>SORT_REGULAR</constant> - compare items normally</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>SORT_NUMERIC - compare items numerically</simpara>
|
||||
<simpara><constant>SORT_NUMERIC</constant> - compare items numerically</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>SORT_STRING - compare items as strings</simpara>
|
||||
<simpara><constant>SORT_STRING</constant> - compare items as strings</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
No two sorting flags of the same type can be specified after each
|
||||
array. The sorting flags specified after an array argument apply
|
||||
only to that array - they are reset to default SORT_ASC and
|
||||
SORT_REGULAR before each new array argument.
|
||||
only to that array - they are reset to default <constant>SORT_ASC</constant> and
|
||||
<constant>SORT_REGULAR</constant> before each new array argument.
|
||||
</para>
|
||||
<para>
|
||||
&return.success;
|
||||
|
|
|
@ -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.array-search">
|
||||
<refnamediv>
|
||||
|
@ -31,7 +31,7 @@
|
|||
<note>
|
||||
<para>
|
||||
Prior to PHP 4.2.0, <function>array_search</function> returns
|
||||
<constant>NULL</constant> on failure instead of &false;.
|
||||
&null; on failure instead of &false;.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.each">
|
||||
<refnamediv>
|
||||
|
@ -19,12 +19,12 @@
|
|||
Returns the current key and value pair from the array
|
||||
<parameter>array</parameter> and advances the array cursor. This
|
||||
pair is returned in a four-element array, with the keys
|
||||
<emphasis>0</emphasis>, <emphasis>1</emphasis>,
|
||||
<emphasis>key</emphasis>, and
|
||||
<emphasis>value</emphasis>. Elements <emphasis>0</emphasis> and
|
||||
<emphasis>key</emphasis> contain the key name of the array
|
||||
element, and <emphasis>1</emphasis> and
|
||||
<emphasis>value</emphasis> contain the data.
|
||||
<literal>0</literal>, <literal>1</literal>,
|
||||
<literal>key</literal>, and
|
||||
<literal>value</literal>. Elements <literal>0</literal> and
|
||||
<literal>key</literal> contain the key name of the array
|
||||
element, and <literal>1</literal> and
|
||||
<literal>value</literal> contain the data.
|
||||
</para>
|
||||
<para>
|
||||
If the internal pointer for the array points past the end of the
|
||||
|
|
|
@ -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.sort">
|
||||
<refnamediv>
|
||||
|
@ -68,13 +68,13 @@ fruits[3] = orange
|
|||
Sorting type flags:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>SORT_REGULAR - compare items normally</simpara>
|
||||
<simpara><constant>SORT_REGULAR</constant> - compare items normally</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>SORT_NUMERIC - compare items numerically</simpara>
|
||||
<simpara><constant>SORT_NUMERIC</constant> - compare items numerically</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>SORT_STRING - compare items as strings</simpara>
|
||||
<simpara><constant>SORT_STRING</constant> - compare items as strings</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.usort">
|
||||
<refnamediv>
|
||||
|
@ -110,8 +110,8 @@ while (list($key, $value) = each($fruits)) {
|
|||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
When sorting a multi-dimensional array, $a and $b contain
|
||||
references to the first index of the array.
|
||||
When sorting a multi-dimensional array, <varname>$a</varname> and
|
||||
<varname>$b</varname> contain references to the first index of the array.
|
||||
</para>
|
||||
<para>
|
||||
This example would display:
|
||||
|
|
Loading…
Reference in a new issue