Bug #14176 Updated: Missing $result in example
| From: | derick@php.net | Date: | Thu, 22 Nov 2001 13:51:27 +0000 |
| Subject: | Bug #14176 Updated: Missing $result in example | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-71381@lists.php.net to get a copy of this message | ||
ID: 14176
Updated by: derick
Reported By: goral@unet.pl
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] goral@unet.pl
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