|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-26 20:16 UTC] gmblar+php at gmail dot com
[2021-06-08 14:33 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2021-06-08 14:33 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 14:00:01 2025 UTC |
Description: ------------ Add is supported but substract Arrays not Test script: --------------- <?php $foo = array('a' => 1, 'b' => 2); $bar = array('c' => 3, 'd' => 4); $foobar = $foo + $bar; print_r($foobar); $foo = $foobar - $bar; print_r($foo); ?> Expected result: ---------------- Array ( [a] => 1 [b] => 2 [c] => 3 [d] => 4 ) Array ( [a] => 1 [b] => 2 ) Actual result: -------------- Array ( [a] => 1 [b] => 2 [c] => 3 [d] => 4 ) Fatal error: Unsupported operand types in array.php on line 9