Re: cvs: phpdoc /en/reference/array/functions array-search.xml
| From: | Dave | Date: | Tue, 16 Dec 2003 09:29:54 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/array/functions array-search.xml | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969357482@lists.php.net to get a copy of this message | ||
On Tuesday, December 16, 2003, 8:26:34 PM, Mehdi wrote:
> didou Tue Dec 16 04:26:34 2003 EDT
> Modified files:
> /phpdoc/en/reference/array/functions array-search.xml
> Log:
> parse error ;)
> Index: phpdoc/en/reference/array/functions/array-search.xml
> diff -u phpdoc/en/reference/array/functions/array-search.xml:1.6
> phpdoc/en/reference/array/functions/array-search.xml:1.7
> --- phpdoc/en/reference/array/functions/array-search.xml:1.6 Mon Dec 15 14:16:05 2003
> +++ phpdoc/en/reference/array/functions/array-search.xml Tue Dec 16 04:26:34 2003
> @@ -1,5 +1,5 @@
> <?xml version="1.0" encoding="iso-8859-1"?>
> -<!-- $Revision: 1.6 $ -->
> +<!-- $Revision: 1.7 $ -->
> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
> <refentry id="function.array-search">
> <refnamediv>
> @@ -55,8 +55,8 @@
> <?php
> $array = array(0 => "blue", 1 => "red", 2 => "green", 3
> => "red");
> -$key = array_search($array, "green")); // $key = 2;
> -$key = array_search($array, "red")); // $key = 1;
> +$key = array_search($array, "green"); // $key = 2;
> +$key = array_search($array, "red"); // $key = 1;
> ?>
> ]]>
> </programlisting>
Heh, oops. Thanks for fixing that. Originally I was using var_dump()
to test it, before changing it to $key = for the example, and forgot
to remove the extra parantheses.
Dave