Lines Matching refs:array_merge
2 Test array_merge() function
7 /* Prototype: array array_merge(array $array1 [, array $array2 [, array $...]]);
11 echo "\n*** Testing array_merge() basic functionality ***";
41 $result = array_merge($first, $second);
49 echo "\n*** Testing array_merge() with three or more arrays ***\n";
50 var_dump( array_merge( $end_array[0],
57 var_dump( array_merge( $end_array[0],
67 var_dump(array_merge(array()));
70 var_dump(array_merge($begin_array[4]));
73 var_dump(array_merge($begin_array[5]));
76 var_dump(array_merge($begin_array[6]));
78 echo "\n*** Testing array_merge() with typecasting non-array to array ***\n";
79 var_dump(array_merge($begin_array[4], (array)"type1", (array)10, (array)12.34));
83 var_dump(array_merge());
84 var_dump(array_merge(100, 200));
85 var_dump(array_merge($begin_array[0], $begin_array[1], 100));
86 var_dump(array_merge($begin_array[0], $begin_array[1], $arr4));
91 *** Testing array_merge() basic functionality ***
639 *** Testing array_merge() with three or more arrays ***
730 *** Testing array_merge() with typecasting non-array to array ***
749 Warning: array_merge() expects at least 1 parameter, 0 given in %s on line %d
752 Warning: array_merge(): Argument #1 is not an array in %s on line %d
755 Warning: array_merge(): Argument #3 is not an array in %s on line %d
760 Warning: array_merge(): Argument #3 is not an array in %s on line %d