Deleted Added
full compact
array_merge.phpt (42feeddd) array_merge.phpt (04145dc2)
1--TEST--
2Test array_merge() function
3--INI--
4precision=14
5--FILE--
6<?php
7/* Prototype: array array_merge(array $array1 [, array $array2 [, array $...]]);
8 Description: Merge one or more arrays

--- 65 unchanged lines hidden (view full) ---

74
75/* associative array with mixed keys and sub-array as element */
76var_dump(array_merge($begin_array[6]));
77
78echo "\n*** Testing array_merge() with typecasting non-array to array ***\n";
79var_dump(array_merge($begin_array[4], (array)"type1", (array)10, (array)12.34));
80
81echo "\n*** Testing error conditions ***";
1--TEST--
2Test array_merge() function
3--INI--
4precision=14
5--FILE--
6<?php
7/* Prototype: array array_merge(array $array1 [, array $array2 [, array $...]]);
8 Description: Merge one or more arrays

--- 65 unchanged lines hidden (view full) ---

74
75/* associative array with mixed keys and sub-array as element */
76var_dump(array_merge($begin_array[6]));
77
78echo "\n*** Testing array_merge() with typecasting non-array to array ***\n";
79var_dump(array_merge($begin_array[4], (array)"type1", (array)10, (array)12.34));
80
81echo "\n*** Testing error conditions ***";
82/* Invalid argumens */
82/* Invalid arguments */
83var_dump(array_merge());
84var_dump(array_merge(100, 200));
85var_dump(array_merge($begin_array[0], $begin_array[1], 100));
86var_dump(array_merge($begin_array[0], $begin_array[1], $arr4));
87
88echo "Done\n";
89?>
90--EXPECTF--

--- 672 unchanged lines hidden ---
83var_dump(array_merge());
84var_dump(array_merge(100, 200));
85var_dump(array_merge($begin_array[0], $begin_array[1], 100));
86var_dump(array_merge($begin_array[0], $begin_array[1], $arr4));
87
88echo "Done\n";
89?>
90--EXPECTF--

--- 672 unchanged lines hidden ---