Date: 01/28/03
- Next message: andrey <email protected>: "[PHP-DOC] #21920 [Bgs]: buggy example"
- Previous message: andrey <email protected>: "[PHP-DOC] #21920 [Opn->Bgs]: buggy example"
- In reply to: corinl <email protected>: "[PHP-DOC] #21920 [NEW]: buggy example"
- Next in thread: andrey <email protected>: "[PHP-DOC] #21920 [Bgs]: buggy example"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 21920
Comment by: corinl <email protected>
Reported By: corinl <email protected>
Status: Bogus
Bug Type: Documentation problem
PHP Version: 4.3.0
New Comment:
hi!
yes, the ourput is correct...but the documentation is wrong, bacause it
says the example should output:
Array
(
[b] => green
[1] => blue
[2] => red
)
Previous Comments:
------------------------------------------------------------------------
[2003-01-28 08:42:21] andrey <email protected>
Look at the View Source of your browser.
Also when using CLI the output is as it is documented.
------------------------------------------------------------------------
[2003-01-28 07:59:32] corinl <email protected>
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 this bug report at http://bugs.php.net/?id=21920&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: andrey <email protected>: "[PHP-DOC] #21920 [Bgs]: buggy example"
- Previous message: andrey <email protected>: "[PHP-DOC] #21920 [Opn->Bgs]: buggy example"
- In reply to: corinl <email protected>: "[PHP-DOC] #21920 [NEW]: buggy example"
- Next in thread: andrey <email protected>: "[PHP-DOC] #21920 [Bgs]: buggy example"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

