2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:30:45 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-10 18:31:23 +00:00
|
|
|
<appendix xml:id="array.constants" xmlns="http://docbook.org/ns/docbook">
|
2002-06-16 14:19:01 +00:00
|
|
|
&reftitle.constants;
|
2002-07-22 13:22:09 +00:00
|
|
|
&extension.constants.core;
|
2002-10-08 10:40:49 +00:00
|
|
|
<para>
|
2002-06-16 14:19:01 +00:00
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.case-lower">
|
2002-06-16 14:19:01 +00:00
|
|
|
<term>
|
|
|
|
<constant>CASE_LOWER</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-06-16 14:19:01 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>CASE_LOWER</constant> is used with
|
|
|
|
<function>array_change_key_case</function> and is used to convert array
|
|
|
|
keys to lower case. This is also the default case for
|
|
|
|
<function>array_change_key_case</function>.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.case-upper">
|
2002-06-16 14:19:01 +00:00
|
|
|
<term>
|
|
|
|
<constant>CASE_UPPER</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-06-16 14:19:01 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>CASE_UPPER</constant> is used with
|
|
|
|
<function>array_change_key_case</function> and is used to convert array
|
|
|
|
keys to upper case.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2002-10-08 10:40:49 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para> Sorting order flags:
|
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sort-asc">
|
2002-10-08 10:40:49 +00:00
|
|
|
<term>
|
|
|
|
<constant>SORT_ASC</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-10-08 10:40:49 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_ASC</constant> is used with
|
|
|
|
<function>array_multisort</function> to sort in ascending order.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sort-desc">
|
2002-10-08 10:40:49 +00:00
|
|
|
<term>
|
|
|
|
<constant>SORT_DESC</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-10-08 10:40:49 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_DESC</constant> is used with
|
|
|
|
<function>array_multisort</function> to sort in descending order.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para> Sorting type flags: used by various sort functions
|
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sort-regular">
|
2002-10-08 10:40:49 +00:00
|
|
|
<term>
|
|
|
|
<constant>SORT_REGULAR</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-10-08 10:40:49 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_REGULAR</constant> is used to compare items normally.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sort-numeric">
|
2002-10-08 10:40:49 +00:00
|
|
|
<term>
|
|
|
|
<constant>SORT_NUMERIC</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-10-08 10:40:49 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_NUMERIC</constant> is used to compare items numerically.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sort-string">
|
2002-10-08 10:40:49 +00:00
|
|
|
<term>
|
|
|
|
<constant>SORT_STRING</constant>
|
2003-05-28 23:03:10 +00:00
|
|
|
(<type>integer</type>)
|
2002-10-08 10:40:49 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_STRING</constant> is used to compare items as strings.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sort-locale-string">
|
2005-02-27 10:56:58 +00:00
|
|
|
<term>
|
|
|
|
<constant>SORT_LOCALE_STRING</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_LOCALE_STRING</constant> is used to compare items as
|
2005-06-06 14:51:55 +00:00
|
|
|
strings, based on the current locale. Added in PHP 4.4.0 and 5.0.2.
|
2005-02-27 10:56:58 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-03-09 13:47:14 +00:00
|
|
|
<varlistentry xml:id="constant.sort-natural">
|
|
|
|
<term>
|
|
|
|
<constant>SORT_NATURAL</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_NATURAL</constant> is used to compare items as
|
|
|
|
strings using "natural ordering" like <function>natsort</function>. Added in PHP 5.4.0.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="constant.sort-flag-case">
|
|
|
|
<term>
|
|
|
|
<constant>SORT_FLAG_CASE</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>SORT_FLAG_CASE</constant> can be combined
|
|
|
|
(bitwise OR) with
|
|
|
|
<constant>SORT_STRING</constant> or
|
|
|
|
<constant>SORT_NATURAL</constant> to sort strings case-insensitively. Added in PHP 5.4.0.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2002-10-08 10:40:49 +00:00
|
|
|
</variablelist>
|
|
|
|
</para>
|
2003-02-23 17:17:00 +00:00
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.count-normal">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>COUNT_NORMAL</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.count-recursive">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>COUNT_RECURSIVE</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-overwrite">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_OVERWRITE</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-skip">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_SKIP</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-prefix-same">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_PREFIX_SAME</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-prefix-all">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_PREFIX_ALL</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-prefix-invalid">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_PREFIX_INVALID</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-prefix-if-exists">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_PREFIX_IF_EXISTS</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-if-exists">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_IF_EXISTS</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.extr-refs">
|
2003-02-23 17:17:00 +00:00
|
|
|
<term>
|
|
|
|
<constant>EXTR_REFS</constant>
|
|
|
|
(<type>integer</type>)
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-12-10 18:31:23 +00:00
|
|
|
</appendix>
|
2002-06-16 14:19:01 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-06-16 14:19:01 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|