#27537 [Opn->Csd]: error in sample
| From: | derick@php.net | Date: | Tue, 09 Mar 2004 14:58:01 +0000 |
| Subject: | #27537 [Opn->Csd]: error in sample | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969359437@lists.php.net to get a copy of this message | ||
ID: 27537
Updated by: derick@php.net
Reported By: infos at artefact dot fr
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: OS X
PHP Version: 4.3.4
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-03-09 09:54:58] infos at artefact dot fr
Description:
------------
you have a wrong example in french documentation for
function.array-search
In french you writte :
<?php
$array = array(0 => "bleu", 1 => "rouge", 2 => "vert", 3
=>
"rouge");
$key = array_search($array, "vert"); // $key = 2;
$key = array_search($array, "rouge"); // $key = 1;
?>
It's right in english
<?php
$array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 =>
'red');
$key = array_search('green', $array); // $key = 2;
$key = array_search('red', $array); // $key = 1;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27537&edit=1