cvs: phpdoc /en/functions array.xml

From: Date: Sun, 11 Nov 2001 18:17:45 +0000
Subject: cvs: phpdoc /en/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338689@lists.php.net to get a copy of this message
derick Sun Nov 11 13:17:45 2001 EDT Modified files: /phpdoc/en/functions array.xml Log: - Re-adding and fixing array_key_exists and array_change_key_case Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.114 phpdoc/en/functions/array.xml:1.115 --- phpdoc/en/functions/array.xml:1.114 Sun Nov 11 12:47:25 2001 +++ phpdoc/en/functions/array.xml Sun Nov 11 13:17:45 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.114 $ --> +<!-- $Revision: 1.115 $ --> <reference id="ref.array"> <title>Array Functions</title> <titleabbrev>Arrays</titleabbrev> @@ -134,7 +134,6 @@ </refsect1> </refentry> - <!-- <refentry id="function.array-change-key-case"> <refnamediv> <refname>array_change_key_case</refname> @@ -181,7 +180,6 @@ </para> </refsect1> </refentry> - --> <refentry id="function.array-chunk"> <refnamediv> @@ -2557,33 +2555,32 @@ </refsect1> </refentry> - <!-- (temporarily?) undocumented - <refentry id="function.key-exists"> + <refentry id="function.array-key-exists"> <refnamediv> - <refname>key_exists</refname> + <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>key_exists</function></funcdef> + <funcdef>bool <function>array_key_exists</function></funcdef> <paramdef>mixed <parameter>key</parameter></paramdef> <paramdef>array <parameter>search</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <function>key_exists</function> returns &true; if the + <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>key_exists</function> example</title> + <title><function>array_key_exists</function> example</title> <programlisting role="php"> $search_array = array("first" => 1, "second" => 4); -if (key_exists("first", $search_array)) { +if (array_key_exists("first", $search_array)) { echo "The 'first' element is in the array"; } </programlisting> @@ -2594,7 +2591,6 @@ </para> </refsect1> </refentry> - --> <refentry id="function.krsort"> <refnamediv>

« previous php.doc (#969338689) next »