Date: 06/29/02
- Next message: cyb.org <email protected>: "[PHP-DOC] Bug #15230 Updated: memory_limit not obviously disabled for windows binary"
- Previous message: phpdoc <email protected>: "[PHP-DOC] Notes Status, 6548 total"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 14992
Updated by: steph.fox <email protected>
Reported By: mfischer <email protected>
Status: Open
Bug Type: Documentation problem
PHP Version: 4.1.1
New Comment:
This is actually documented under array_merge() (was it always? -
dunno) but omits to mention that shared keys will be overwritten on a
first-come first-served basis. Quick update, anyone with access?
Previous Comments:
------------------------------------------------------------------------
[2002-01-16 14:44:51] philip <email protected>
We know, but it needs to be documented nevertheless. I posted a rather
detailed test. The question is "where" to document it exactly.
------------------------------------------------------------------------
[2002-01-16 12:53:08] andrei <email protected>
$array1 + $array2 is *not* the same as array_merge(). See for yourself
with array(1, 2) and array(5, 6, 7).
------------------------------------------------------------------------
[2002-01-11 06:03:44] philip <email protected>
Where should this feature be documented, I see two viable options:
a) Under array_merge()
b) A new "Array Operators" man page.
I assume most people wanting to merge arrays will go to array_merge()
but having it's own man page could make room to clearly explain the
differences of it and array_merge and array_merge_recursive. I vote
for (b). Of course the functions would link to it. This is kinda like
how `backticks` are documented now, as, "Execution Operators".
A brief note under "Arithmetic Operators" may be appropriate too.
Also, for those interested in documenting this beast, please see this
post:
http://marc.theaimsgroup.com/?l=phpdoc&m=101074306518514
------------------------------------------------------------------------
[2002-01-11 05:04:53] mfischer <email protected>
The behaviour of the following code doens't seem to be documented:
<?
$foo = array(27 => 'Ene');
$bar = array(-1 => 'Mene');
$baz = $foo + $bar;
var_dump($baz);
?>
array(2) {
[27]=>
string(3) "Ene"
[-1]=>
string(4) "Mene"
}
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=14992&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: cyb.org <email protected>: "[PHP-DOC] Bug #15230 Updated: memory_limit not obviously disabled for windows binary"
- Previous message: phpdoc <email protected>: "[PHP-DOC] Notes Status, 6548 total"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

