cvs: phpdoc /en/functions array.xml

From: Date: Fri, 21 Sep 2001 23:02:14 +0000
Subject: cvs: phpdoc /en/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337661@lists.php.net to get a copy of this message
jeroen Fri Sep 21 19:02:14 2001 EDT Modified files: /phpdoc/en/functions array.xml Log: Fix array_flip description on value requirments and what-if-that-isn't-the-case. Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.99 phpdoc/en/functions/array.xml:1.100 --- phpdoc/en/functions/array.xml:1.99 Fri Sep 21 18:47:33 2001 +++ phpdoc/en/functions/array.xml Fri Sep 21 19:02:13 2001 @@ -1,5 +1,5 @@ <?xml encoding="iso-8859-1"?> -<!-- $Revision: 1.99 $ --> +<!-- $Revision: 1.100 $ --> <reference id="ref.array"> <title>Array Functions</title> <titleabbrev>Arrays</titleabbrev> @@ -294,12 +294,16 @@ </funcprototype> </funcsynopsis> <para> - <function>array_flip</function> returns an array in flip order, - i.e. keys from <parameter>trans</parameter> become values and + <function>array_flip</function> returns an <type>array</type> in flip + order, i.e. keys from <parameter>trans</parameter> become values and <parameter>trans</parameter>'s values become keys. - Note that <function>array_flip</function> works only with string - and integer values, and it will display an alert if it detects - invalid key or value (array, double, object, boolean). + </para> + <para> + Note that the values of <parameter>trans</parameter> need to be valid + keys, i.e. they need to be either <type>integer</type> or + <type>string</type>. A warning will be emitted if a value has the wrong + type, and the key/value pair in question <emphasis>will not be + flipped</emphasis>. </para> <para> If a value has several occurences, the latest key will be

« previous php.doc (#969337661) next »