|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-01-04 04:00 UTC] requinix@php.net
-Status: Open
+Status: Suspended
[2018-01-04 04:00 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 21:00:01 2025 UTC |
Description: ------------ When trying to union two arrays, be able to union all values. So, basically array_merge_recursive, but using ++. Test script: --------------- $a = array("a" => "apple", "b" => "banana"); $b = array("a" => "pear", "b" => "strawberry", "c" => "cherry"); $c = $a ++ $b; // Union all of $a and $b. UNION ALL OUTPUT: $c = array("a" => array("apple", "pear"), "b" => array("banana", "strawberry"), "c" => "cherry");