Home
last modified time | relevance | path

Searched refs:array_merge (Results 1 – 25 of 70) sorted by relevance

123

/php-src/ext/standard/tests/array/
H A Darray_merge_variation2.phpt9 echo "*** Testing array_merge() : usage variations ***\n";
88 var_dump( array_merge($arr1, $input) );
100 *** Testing array_merge() : usage variations ***
103 array_merge(): Argument #2 must be of type array, int given
106 array_merge(): Argument #2 must be of type array, int given
109 array_merge(): Argument #2 must be of type array, int given
112 array_merge(): Argument #2 must be of type array, int given
130 array_merge(): Argument #2 must be of type array, null given
133 array_merge(): Argument #2 must be of type array, null given
136 array_merge(): Argument #2 must be of type array, true given
[all …]
H A Darray_merge_basic.phpt2 Test array_merge() function : basic functionality
6 * Test basic functionality of array_merge()
9 echo "*** Testing array_merge() : basic functionality ***\n";
16 var_dump(array_merge($array1, $array2));
18 var_dump(array_merge($array2, $array1));
23 *** Testing array_merge() : basic functionality ***
H A Darray_merge_variation8.phpt2 Test array_merge() function : usage variations - multi-dimensional arrays
6 * Test array_merge() with multi-dimensional arrays
9 echo "*** Testing array_merge() : usage variations ***\n";
15 var_dump(array_merge($arr1, $arr2));
18 var_dump(array_merge($arr1[3], $arr2));
19 var_dump(array_merge($arr2, $arr1[3]));
24 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation5.phpt2 Test array_merge() function : usage variations - numeric keys
6 * Pass array_merge() arrays with only numeric keys to test behaviour.
10 echo "*** Testing array_merge() : usage variations ***\n";
16 var_dump(array_merge($arr1, $arr2));
17 var_dump(array_merge($arr2, $arr1));
22 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation7.phpt2 Test array_merge() function : usage variations - Mixed keys
6 * Pass array_merge() arrays with mixed keys to test how it attaches them to
10 echo "*** Testing array_merge() : usage variations ***\n";
16 var_dump(array_merge($arr1, $arr2));
17 var_dump(array_merge($arr2, $arr1));
22 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation10.phpt2 Test array_merge() function : usage variations - position of internal array pointer
6 * Check the position of the internal array pointer after calling array_merge().
7 * This test is also passing more than two arguments to array_merge().
10 echo "*** Testing array_merge() : usage variations ***\n";
16 echo "\n-- Call array_merge() --\n";
17 var_dump($result = array_merge($arr1, $arr2, $arr3));
33 *** Testing array_merge() : usage variations ***
35 -- Call array_merge() --
H A Darray_merge_variation6.phpt2 Test array_merge() function : usage variations - string keys
6 * Pass array_merge arrays with string keys to test behaviour.
10 echo "*** Testing array_merge() : usage variations ***\n";
16 var_dump(array_merge($arr1, $arr2));
17 var_dump(array_merge($arr2, $arr1));
22 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation9.phpt2 Test array_merge() function : usage variations - referenced variables
5 /* Test array_merge() when:
10 echo "*** Testing array_merge() : usage variations ***\n";
20 var_dump(array_merge($arr1, $arr2));
21 var_dump(array_merge($arr2, $arr1));
26 var_dump(array_merge($arr1, $arr2));
27 var_dump(array_merge($arr2, $arr1));
32 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation1.phpt2 Test array_merge() function : usage variations - Pass different data types to $arr1 arg
9 echo "*** Testing array_merge() : usage variations ***\n";
83 // loop through each element of $inputs to check the behavior of array_merge()
87 var_dump( array_merge($input, $arr2) );
96 *** Testing array_merge() : usage variations ***
100 Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, int given in %s:…
102 #0 %s(%d): array_merge(0, Array)
H A Darray_merge.phpt2 Test array_merge() function
7 echo "\n*** Testing array_merge() basic functionality ***";
37 $result = array_merge($first, $second);
46 var_dump( array_merge( $end_array[0],
53 var_dump( array_merge( $end_array[0],
63 var_dump(array_merge(array()));
66 var_dump(array_merge($begin_array[4]));
69 var_dump(array_merge($begin_array[5]));
72 var_dump(array_merge($begin_array[6]));
78 var_dump(array_merge());
[all …]
H A Darray_merge_variation3.phpt2 Test array_merge() function : usage variations - arrays of diff. data types
6 * Pass arrays of different data types to test how array_merge adds them
10 echo "*** Testing array_merge() : usage variations ***\n";
106 // loop through each element of $inputs to check the behavior of array_merge
110 var_dump( array_merge($input, $arr) );
111 var_dump( array_merge($arr, $input) );
120 *** Testing array_merge() : usage variations ***
H A Dbug72369.phpt2 Bug #72369 (array_merge() produces references in PHP7)
9 $a = array_merge($a, $d);
H A Darray_merge_variation4.phpt2 Test array_merge() function : usage variations - Diff. data types as array keys
6 * Pass an array with different data types as keys to test how array_merge
10 echo "*** Testing array_merge() : usage variations ***\n";
82 // loop through each element of $inputs to check the behavior of array_merge
86 var_dump( array_merge($input, $arr) );
87 var_dump( array_merge($arr, $input) );
94 *** Testing array_merge() : usage variations ***
H A Dbug71837.phpt9 $c = array_merge($p, array());
H A D001.phpt2 Test array_merge and array_walk
33 $data = array_merge($data, $data2);
/php-src/Zend/tests/named_params/
H A Dinternal_variadics.phpt7 array_merge([1, 2], a: [3, 4]);
20 array_merge() does not accept unknown named parameters
/php-src/tests/lang/operators/
H A Doperator_identical_basic.phpt25 true, array(true), array_merge($valid_true, $valid_false),
26 false, array(false), array_merge($valid_true, $valid_false),
H A Doperator_notidentical_basic.phpt25 true, array_merge($valid_true, $valid_false), array(true),
26 false, array_merge($valid_true, $valid_false), array(false),
/php-src/ext/standard/tests/array/sort/
H A Darray_multisort_stability.phpt9 $origAry2 = $ary2 = array_merge(...array_fill(0, 50, [0, '0']));
/php-src/ext/opcache/tests/opt/
H A Dblock_pass_002.phpt13 ? [$key, array_merge($value, $attributes)]
/php-src/ext/bcmath/tests/
H A Dbcadd_zero.phpt12 $rightSummands = array_merge($leftSummands, [
H A Dbcsub_zero.phpt12 $subtrahends = array_merge($minuends, [
H A Dbcmul_zero.phpt12 $secondFactors = array_merge($firstFactors, [
/php-src/ext/opcache/tests/jit/
H A Dgh15821.phpt13 $allInternalFunctions = array_merge($allInternalFunctions, $internalFunctions);
/php-src/ext/pcntl/tests/
H A Dbug81577_3.phpt13 array_merge([1], [2]) + posix_kill(posix_getpid(), SIGTERM);

Completed in 23 milliseconds

123