php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55795 Is it permited?
Submitted: 2011-09-27 09:36 UTC Modified: 2011-10-08 21:39 UTC
From: admin at yp116 dot com Assigned:
Status: Not a bug Package: Doc Build problem
PHP Version: trunk-SVN-2011-09-27 (SVN) OS: win xp
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at yp116 dot com
New email:
PHP Version: OS:

 

 [2011-09-27 09:36 UTC] admin at yp116 dot com
Description:
------------
---
From manual page: http://www.php.net/function.array#refsect1-function.array-
unknown
---
<?
$a=array('a'=>1,'b'=>2);
$b=array('j'=>7,'i'=>8);
$b +=$a;
var_dump($b);
?>

Test script:
---------------
array(4) {
  ["j"]=>
  int(7)
  ["i"]=>
  int(8)
  ["a"]=>
  int(1)
  ["b"]=>
  int(2)
}



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-08 21:39 UTC] frozenfire@php.net
-Status: Open +Status: Bogus
 [2011-10-08 21:39 UTC] frozenfire@php.net
This behaviour is already documented in 
http://php.net/manual/en/language.operators.array.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC