#27537 [Csd->Bgs]: error in sample

From: Date: Tue, 09 Mar 2004 15:04:39 +0000
Subject: #27537 [Csd->Bgs]: error in sample
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969359438@lists.php.net to get a copy of this message
ID: 27537 Updated by: didou@php.net Reported By: infos at artefact dot fr -Status: Closed +Status: Bogus Bug Type: Documentation problem Operating System: OS X PHP Version: 4.3.4 New Comment: duplicate of #27536 Previous Comments: ------------------------------------------------------------------------ [2004-03-09 09:58:00] derick@php.net 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. ------------------------------------------------------------------------ [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

« previous php.doc (#969359438) next »