ID: 14176
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: any
PHP Version: 4.0.6
New Comment:

Fixed in CVS. It will show up in a few days on the website.

Derick

Previous Comments:
------------------------------------------------------------------------

[2001-11-22 08:49:22] [EMAIL PROTECTED]

In array_merge example we have:
$array1 = array ("color" => "red", 2, 4);
$array2 = array ("a", "b", "color" => "green", "shape" => "trapezoid", 4);
array_merge ($array1, $array2);

But since array_merge returns an array it should look like this:
$array1 = array ("color" => "red", 2, 4);
$array2 = array ("a", "b", "color" => "green", "shape" => "trapezoid", 4);
$result = array_merge ($array1, $array2);

Just like in array_merge_recursive().


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14176&edit=1

Reply via email to