From: infos at artefact dot fr
Operating system: OS X
PHP version: 4.3.4
PHP Bug Type: Documentation problem
Bug description: error in sample
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 bug report at http://bugs.php.net/?id=27537&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27537&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27537&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27537&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27537&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27537&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27537&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27537&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27537&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27537&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27537&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27537&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27537&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27537&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27537&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27537&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27537&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27537&r=float