goba Wed Nov 14 07:40:31 2001 EDT
Modified files:
/phpdoc/en/functions array.xml
Log:
So if this is array_key_exists, move this up to
the right place in alphabetical order...
Index: phpdoc/en/functions/array.xml
diff -u phpdoc/en/functions/array.xml:1.118 phpdoc/en/functions/array.xml:1.119
--- phpdoc/en/functions/array.xml:1.118 Mon Nov 12 08:50:34 2001
+++ phpdoc/en/functions/array.xml Wed Nov 14 07:40:30 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.118 $ -->
+<!-- $Revision: 1.119 $ -->
<reference id="ref.array">
<title>Array Functions</title>
<titleabbrev>Arrays</titleabbrev>
@@ -570,6 +570,43 @@
</refsect1>
</refentry>
+ <refentry id="function.array-key-exists">
+ <refnamediv>
+ <refname>array_key_exists</refname>
+ <refpurpose>Checks if the given key or index exists in the array</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>bool <function>array_key_exists</function></funcdef>
+ <paramdef>mixed <parameter>key</parameter></paramdef>
+ <paramdef>array <parameter>search</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>array_key_exists</function> returns &true; if the
+ given <parameter>key</parameter> is set in the array.
+ <parameter>key</parameter> can be any value possible
+ for an array index.
+ </para>
+ <para>
+ <example>
+ <title><function>array_key_exists</function> example</title>
+ <programlisting role="php">
+$search_array = array("first" => 1, "second" => 4);
+if (array_key_exists("first", $search_array)) {
+ echo "The 'first' element is in the array";
+}
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ See also <function>isset</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.array-keys">
<refnamediv>
<refname>array_keys</refname>
@@ -2551,43 +2588,6 @@
</para>
<para>
See also <function>current</function> and <function>next</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.array-key-exists">
- <refnamediv>
- <refname>array_key_exists</refname>
- <refpurpose>Checks if the given key or index exists in the array</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>bool <function>array_key_exists</function></funcdef>
- <paramdef>mixed <parameter>key</parameter></paramdef>
- <paramdef>array <parameter>search</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>array_key_exists</function> returns &true; if the
- given <parameter>key</parameter> is set in the array.
- <parameter>key</parameter> can be any value possible
- for an array index.
- </para>
- <para>
- <example>
- <title><function>array_key_exists</function> example</title>
- <programlisting role="php">
-$search_array = array("first" => 1, "second" => 4);
-if (array_key_exists("first", $search_array)) {
- echo "The 'first' element is in the array";
-}
- </programlisting>
- </example>
- </para>
- <para>
- See also <function>isset</function>.
</para>
</refsect1>
</refentry>