From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4.3.0
PHP Bug Type:     Documentation problem
Bug description:  buggy example

http://de.php.net/manual/de/function.array-unique.php

the example:
$input = array ("a" => "grün", "rot", "b" => "grün", "blau", "rot");
$result = array_unique ($input);
print_r($result);

should (and does) print:
Array ( [a] => grün [0] => rot [1] => blau ) 

and not:
Array
(
    [b] => grün
    [1] => blau
    [2] => rot
)

-- 
Edit bug report at http://bugs.php.net/?id=21920&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21920&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21920&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21920&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21920&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21920&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21920&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21920&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21920&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21920&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21920&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21920&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21920&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21920&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21920&r=gnused


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to