cvs: phpdoc /en/functions array.xml

From: Date: Thu, 20 Dec 2001 23:23:12 +0000
Subject: cvs: phpdoc /en/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340186@lists.php.net to get a copy of this message
jimw Thu Dec 20 18:23:12 2001 EDT Modified files: /phpdoc/en/functions array.xml Log: in_array: note match is case-sensitive, add example Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.140 phpdoc/en/functions/array.xml:1.141 --- phpdoc/en/functions/array.xml:1.140 Thu Dec 20 17:23:24 2001 +++ phpdoc/en/functions/array.xml Thu Dec 20 18:23:12 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.140 $ --> +<!-- $Revision: 1.141 $ --> <reference id="ref.array"> <title>Array Functions</title> <titleabbrev>Arrays</titleabbrev> @@ -2613,6 +2613,12 @@ will also check the <link linkend="language.types">types</link> of the <parameter>needle</parameter> in the <parameter>haystack</parameter>. </para> + <note> + <para> + If <parameter>needle</parameter> is a string, the comparison is done in + a case-sensitive manner. + </para> + </note> <para> <example> <title><function>in_array</function> example</title> @@ -2621,6 +2627,9 @@ $os = array ("Mac", "NT", "Irix", "Linux"); if (in_array ("Irix", $os)) { print "Got Irix"; +} +if (in_array ("mac", $os)) { # fails because in_array() is case-sensitive + print "Got mac"; } ]]> </programlisting>

« previous php.doc (#969340186) next »