mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
scandir constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312682 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5434c02b16
commit
c9c117546e
2 changed files with 64 additions and 9 deletions
|
@ -22,16 +22,44 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
Available since PHP 4.3.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>SCANDIR_SORT_ASCENDING</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 5.4.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>SCANDIR_SORT_DESCENDING</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 5.4.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>SCANDIR_SORT_NONE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Available since PHP 5.4.0.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
<note>
|
||||
<simpara>
|
||||
The <constant>PATH_SEPARATOR</constant> was introduced with PHP 4.3.0-RC2.
|
||||
</simpara>
|
||||
</note>
|
||||
</appendix>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<methodsynopsis>
|
||||
<type>array</type><methodname>scandir</methodname>
|
||||
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sorting_order</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>sorting_order</parameter><initializer>SCANDIR_SORT_ASCENDING</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
@ -38,8 +38,10 @@
|
|||
<listitem>
|
||||
<para>
|
||||
By default, the sorted order is alphabetical in ascending order. If
|
||||
the optional <parameter>sorting_order</parameter> is set to non-zero,
|
||||
then the sort order is alphabetical in descending order.
|
||||
the optional <parameter>sorting_order</parameter> is set to
|
||||
<constant>SCANDIR_SORT_DESCENDING</constant>, then the sort order is
|
||||
alphabetical in descending order. If it is set to
|
||||
<constant>SCANDIR_SORT_NONE</constant> then the result is unsorted.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -67,6 +69,31 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.4.0</entry>
|
||||
<entry>
|
||||
<parameter>sorting_order</parameter> now accepts constants. Any
|
||||
nonzero value caused descending order in previous versions.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue