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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun Apr 28 15:01:31 2024 UTC