ID: 27537 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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