Page MenuHomePhabricator

Array_merge

Authored By
sascha-egerer
May 15 2014, 7:55 PM
Size
3 KB
Referenced Files
None
Subscribers
None

Array_merge

Array 1:
array (
0 => 'foo',
)
Array 2:
array (
)
$array1 + $array2
array (
0 => 'foo',
)
array_merge($array1, $array2)
array (
0 => 'foo',
)
array_merge_recursive($array1, $array2)
array (
0 => 'foo',
)
array_merge_recursive_overrule($array1, $array2)
array (
0 => 'foo',
)
---------
Array 1:
array (
)
Array 2:
array (
0 => 'foo',
)
$array1 + $array2
array (
0 => 'foo',
)
array_merge($array1, $array2)
array (
0 => 'foo',
)
array_merge_recursive($array1, $array2)
array (
0 => 'foo',
)
array_merge_recursive_overrule($array1, $array2)
array (
0 => 'foo',
)
---------
Array 1:
array (
0 => 'bar',
)
Array 2:
array (
0 => 'foo',
)
$array1 + $array2
array (
0 => 'bar',
)
array_merge($array1, $array2)
array (
0 => 'bar',
1 => 'foo',
)
array_merge_recursive($array1, $array2)
array (
0 => 'bar',
1 => 'foo',
)
array_merge_recursive_overrule($array1, $array2)
array (
0 => 'foo',
)
---------
Array 1:
array (
'bar' => 1,
)
Array 2:
array (
'foo' => 2,
)
$array1 + $array2
array (
'bar' => 1,
'foo' => 2,
)
array_merge($array1, $array2)
array (
'bar' => 1,
'foo' => 2,
)
array_merge_recursive($array1, $array2)
array (
'bar' => 1,
'foo' => 2,
)
array_merge_recursive_overrule($array1, $array2)
array (
'bar' => 1,
'foo' => 2,
)
---------
Array 1:
array (
'bar' => 1,
)
Array 2:
array (
'bar' => 2,
)
$array1 + $array2
array (
'bar' => 1,
)
array_merge($array1, $array2)
array (
'bar' => 2,
)
array_merge_recursive($array1, $array2)
array (
'bar' =>
array (
0 => 1,
1 => 2,
),
)
array_merge_recursive_overrule($array1, $array2)
array (
'bar' => 2,
)
---------
Array 1:
array (
'bar' => 1,
'bar-1' => 'stringValue',
)
Array 2:
array (
'foo' => 2,
)
$array1 + $array2
array (
'bar' => 1,
'bar-1' => 'stringValue',
'foo' => 2,
)
array_merge($array1, $array2)
array (
'bar' => 1,
'bar-1' => 'stringValue',
'foo' => 2,
)
array_merge_recursive($array1, $array2)
array (
'bar' => 1,
'bar-1' => 'stringValue',
'foo' => 2,
)
array_merge_recursive_overrule($array1, $array2)
array (
'bar' => 1,
'bar-1' => 'stringValue',
'foo' => 2,
)
---------
Array 1:
array (
'bar' =>
array (
0 => 'foo',
),
)
Array 2:
array (
'bar' => 2,
)
$array1 + $array2
array (
'bar' =>
array (
0 => 'foo',
),
)
array_merge($array1, $array2)
array (
'bar' => 2,
)
array_merge_recursive($array1, $array2)
array (
'bar' =>
array (
0 => 'foo',
1 => 2,
),
)
array_merge_recursive_overrule($array1, $array2)
array (
'bar' => 2,
)
---------
Array 1:
array (
'bar' =>
array (
0 => 'foo',
),
)
Array 2:
array (
'bar' =>
array (
0 => 'bar',
),
)
$array1 + $array2
array (
'bar' =>
array (
0 => 'foo',
),
)
array_merge($array1, $array2)
array (
'bar' =>
array (
0 => 'bar',
),
)
array_merge_recursive($array1, $array2)
array (
'bar' =>
array (
0 => 'foo',
1 => 'bar',
),
)
array_merge_recursive_overrule($array1, $array2)
array (
'bar' =>
array (
0 => 'bar',
),
)
---------
Array 1:
array (
'bar' =>
array (
'bar' => 1,
'foo' => 1,
),
)
Array 2:
array (
'bar' =>
array (
'bar' => 2,
),
)
$array1 + $array2
array (
'bar' =>
array (
'bar' => 1,
'foo' => 1,
),
)
array_merge($array1, $array2)
array (
'bar' =>
array (
'bar' => 2,
),
)
array_merge_recursive($array1, $array2)
array (
'bar' =>
array (
'bar' =>
array (
0 => 1,
1 => 2,
),
'foo' => 1,
),
)
array_merge_recursive_overrule($array1, $array2)
array (
'bar' =>
array (
'bar' => 2,
'foo' => 1,
),
)

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/cg/2s/styq6kf3eclsraac
Default Alt Text
Array_merge (3 KB)

Event Timeline