Behaviour of $array1 + $array2
| From: | Markus Fischer | Date: | Thu, 10 Jan 2002 15:39:52 +0000 |
| Subject: | Behaviour of $array1 + $array2 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76499@lists.php.net to get a copy of this message | ||
Can someone point me where the following behaviour is documented:
$ php -q
<?
$foo = array(27 => 'Ene');
$bar = array(-1 => 'Mene');
$baz = $foo + $bar;
var_dump($baz);
?>
array(2) {
[27]=>
string(3) "Ene"
[-1]=>
string(4) "Mene"
}
cheers
- Markus
--
Please always Cc to me when replying to me on the lists.