Home
last modified time | relevance | path

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

123

/PHP-7.2/ext/standard/tests/array/
H A Darray_merge_variation2.phpt5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
14 echo "*** Testing array_merge() : usage variations ***\n";
92 var_dump( array_merge($arr1, $input) );
101 *** Testing array_merge() : usage variations ***
105 Warning: array_merge(): Argument #2 is not an array in %s on line %d
110 Warning: array_merge(): Argument #2 is not an array in %s on line %d
115 Warning: array_merge(): Argument #2 is not an array in %s on line %d
120 Warning: array_merge(): Argument #2 is not an array in %s on line %d
125 Warning: array_merge(): Argument #2 is not an array in %s on line %d
130 Warning: array_merge(): Argument #2 is not an array in %s on line %d
[all …]
H A Darray_merge_variation1.phpt5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
14 echo "*** Testing array_merge() : usage variations ***\n";
92 var_dump( array_merge($input, $arr2) );
101 *** Testing array_merge() : usage variations ***
105 Warning: array_merge(): Argument #1 is not an array in %s on line %d
110 Warning: array_merge(): Argument #1 is not an array in %s on line %d
115 Warning: array_merge(): Argument #1 is not an array in %s on line %d
120 Warning: array_merge(): Argument #1 is not an array in %s on line %d
125 Warning: array_merge(): Argument #1 is not an array in %s on line %d
130 Warning: array_merge(): Argument #1 is not an array in %s on line %d
[all …]
H A Darray_merge_error.phpt2 Test array_merge() function : error conditions - Pass incorrect number of args
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Pass incorrect number of arguments to array_merge() to test behaviour
14 echo "*** Testing array_merge() : error conditions ***\n";
16 // Testing array_merge with zero arguments
17 echo "\n-- Testing array_merge() function with less than expected no. of arguments --\n";
19 var_dump( array_merge() );
24 *** Testing array_merge() : error conditions ***
26 -- Testing array_merge() function with less than expected no. of arguments --
28 Warning: array_merge() expects at least 1 parameter, 0 given in %s on line %d
H A Darray_merge_basic.phpt2 Test array_merge() function : basic functionality
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Test basic functionality of array_merge()
14 echo "*** Testing array_merge() : basic functionality ***\n";
21 var_dump(array_merge($array1, $array2));
23 var_dump(array_merge($array2, $array1));
28 *** Testing array_merge() : basic functionality ***
H A Darray_merge_variation8.phpt2 Test array_merge() function : usage variations - multi-dimensional arrays
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Test array_merge() with multi-dimensional arrays
14 echo "*** Testing array_merge() : usage variations ***\n";
20 var_dump(array_merge($arr1, $arr2));
23 var_dump(array_merge($arr1[3], $arr2));
24 var_dump(array_merge($arr2, $arr1[3]));
29 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation5.phpt2 Test array_merge() function : usage variations - numeric keys
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Pass array_merge() arrays with only numeric keys to test behaviour.
15 echo "*** Testing array_merge() : usage variations ***\n";
21 var_dump(array_merge($arr1, $arr2));
22 var_dump(array_merge($arr2, $arr1));
27 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation7.phpt2 Test array_merge() function : usage variations - Mixed keys
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Pass array_merge() arrays with mixed keys to test how it attaches them to
15 echo "*** Testing array_merge() : usage variations ***\n";
21 var_dump(array_merge($arr1, $arr2));
22 var_dump(array_merge($arr2, $arr1));
27 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation6.phpt2 Test array_merge() function : usage variations - string keys
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Pass array_merge arrays with string keys to test behaviour.
15 echo "*** Testing array_merge() : usage variations ***\n";
21 var_dump(array_merge($arr1, $arr2));
22 var_dump(array_merge($arr2, $arr1));
27 *** Testing array_merge() : usage variations ***
H A Darray_merge_variation10.phpt2 Test array_merge() function : usage variations - position of internal array pointer
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Check the position of the internal array pointer after calling array_merge().
12 * This test is also passing more than two arguments to array_merge().
15 echo "*** Testing array_merge() : usage variations ***\n";
21 echo "\n-- Call array_merge() --\n";
22 var_dump($result = array_merge($arr1, $arr2, $arr3));
38 *** Testing array_merge() : usage variations ***
40 -- Call array_merge() --
H A Darray_merge_variation9.phpt2 Test array_merge() function : usage variations - referenced variables
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
10 /* Test array_merge() when:
15 echo "*** Testing array_merge() : usage variations ***\n";
25 var_dump(array_merge($arr1, $arr2));
26 var_dump(array_merge($arr2, $arr1));
31 var_dump(array_merge($arr1, $arr2));
32 var_dump(array_merge($arr2, $arr1));
37 *** Testing array_merge() : usage variations ***
H A Darray_merge.phpt2 Test array_merge() function
41 $result = array_merge($first, $second);
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]));
83 var_dump(array_merge());
84 var_dump(array_merge(100, 200));
[all …]
H A Darray_merge_variation3.phpt2 Test array_merge() function : usage variations - arrays of diff. data types
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Pass arrays of different data types to test how array_merge adds them
15 echo "*** Testing array_merge() : usage variations ***\n";
111 // loop through each element of $inputs to check the behavior of array_merge
115 var_dump( array_merge($input, $arr) );
116 var_dump( array_merge($arr, $input) );
125 *** 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
5 /* Prototype : array array_merge(array $arr1, array $arr2 [, array $...])
11 * Pass an array with different data types as keys to test how array_merge
15 echo "*** Testing array_merge() : usage variations ***\n";
99 // loop through each element of $inputs to check the behavior of array_merge
103 var_dump( array_merge($input, $arr) );
104 var_dump( array_merge($arr, $input) );
111 *** 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);
H A Darray_merge_replace_recursive_refs.phpt2 array_merge/replace_recursive() should unwrap references with rc=1
/PHP-7.2/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-7.2/ext/standard/tests/serialize/
H A Dbug35895.phpt15 return array_merge(array("child"), parent::__sleep());
/PHP-7.2/sapi/phpdbg/
H A D.phpdbginit43 return array_merge(
70 $_SERVER['argv'] = array_merge
/PHP-7.2/Zend/tests/closures/
H A Dclosure_from_callable.inc141 $info = array_merge($info, $arguments);
149 $info = array_merge($info, $arguments);
/PHP-7.2/scripts/dev/generate-phpt/src/setup/
H A DgtCommandLineOptions.php56 if (!in_array($option, array_merge($this->shortOptions, $this->shortOptionsWithArgs)))
/PHP-7.2/ext/mysqli/tests/
H A Dmysqli_constants.phpt155 $expected_constants = array_merge($expected_constants, array(
166 $expected_constants = array_merge($expected_constants, array(
176 $expected_constants = array_merge($expected_constants, array(
/PHP-7.2/scripts/dev/
H A Dsearch_underscores.php32 $classes = array_merge(get_declared_classes(), get_declared_interfaces());

Completed in 42 milliseconds

123