Bug #14176: Missing $result in example
| From: | goral at unet dot pl | Date: | Thu, 22 Nov 2001 13:49:22 +0000 |
| Subject: | Bug #14176: Missing $result in example | ||
| Groups: | php.dev php.doc | ||
| Request: | Send a blank email to php-dev+get-71380@lists.php.net to get a copy of this message | ||
From: goral@unet.pl
Operating system: any
PHP version: 4.0.6
PHP Bug Type: Documentation problem
Bug description: Missing $result in example
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 bug report at: http://bugs.php.net/?id=14176&edit=1