Home
last modified time | relevance | path

Searched refs:array_combine (Results 1 – 13 of 13) sorted by relevance

/PHP-7.3/ext/standard/tests/array/
H A Darray_combine.phpt2 basic array_combine test
9 $a = array_combine($array1, $array1);
10 $b = array_combine($array1, $array2);
11 $c = array_combine($array1, $array3);
12 $d = array_combine($array1, $array4);
13 $e = array_combine($array2, $array1);
14 $f = array_combine($array2, $array2);
15 $g = array_combine($array2, $array3);
16 $h = array_combine($array2, $array4);
17 $i = array_combine($array3, $array1);
[all …]
H A Darray_combine_error2.phpt2 Test array_combine() function : error conditions - empty array
5 /* Prototype : array array_combine(array $keys, array $values)
11 echo "*** Testing array_combine() : error conditions specific to array_combine() ***\n";
15 var_dump( array_combine(array(), array()) );
17 // Testing array_combine by passing empty array to $keys
19 var_dump( array_combine(array(), array(1, 2)) );
21 // Testing array_combine by passing empty array to $values
23 var_dump( array_combine(array(1, 2), array()) );
27 var_dump( array_combine(array(1, 2), array(1, 2, 3)) );
32 *** Testing array_combine() : error conditions specific to array_combine() ***
[all …]
H A Darray_combine_error1.phpt2 Test array_combine() function : error conditions
5 /* Prototype : array array_combine(array $keys, array $values)
11 echo "*** Testing array_combine() : error conditions ***\n";
14 echo "\n-- Testing array_combine() function with Zero arguments --\n";
15 var_dump( array_combine() );
17 //Test array_combine with one more than the expected number of arguments
22 var_dump( array_combine($keys,$values, $extra_arg) );
24 // Testing array_combine with one less than the expected number of arguments
27 var_dump( array_combine($keys) );
32 *** Testing array_combine() : error conditions ***
[all …]
H A Darray_combine_variation1.phpt2 Test array_combine() function : usage variations - unexpected values for 'keys' argument
5 /* Prototype : array array_combine(array $keys, array $values)
12 * Testing array_combine() function by passing values to $keys argument other than arrays
17 echo "*** Testing array_combine() : Passing non-array values to \$keys argument ***\n";
94 var_dump( array_combine($keys,$values) );
101 *** Testing array_combine() : Passing non-array values to $keys argument ***
104 Warning: array_combine() expects parameter 1 to be array, int given in %s on line %d
108 Warning: array_combine() expects parameter 1 to be array, int given in %s on line %d
112 Warning: array_combine() expects parameter 1 to be array, int given in %s on line %d
116 Warning: array_combine() expects parameter 1 to be array, int given in %s on line %d
[all …]
H A Darray_combine_variation2.phpt2 Test array_combine() function : usage variations - unexpected values for 'values' argument
5 /* Prototype : array array_combine(array $keys, array $values)
12 * Testing array_combine() function by passing values to $values argument other than arrays
17 echo "*** Testing array_combine() : Passing non-array values to \$values argument ***\n";
94 var_dump( array_combine($keys,$values) );
101 *** Testing array_combine() : Passing non-array values to $values argument ***
104 Warning: array_combine() expects parameter 2 to be array, int given in %s on line %d
108 Warning: array_combine() expects parameter 2 to be array, int given in %s on line %d
112 Warning: array_combine() expects parameter 2 to be array, int given in %s on line %d
116 Warning: array_combine() expects parameter 2 to be array, int given in %s on line %d
[all …]
H A Darray_combine_variation6.phpt2 Test array_combine() function : usage variations - binary safe checking
5 /* Prototype : array array_combine(array $keys, array $values)
12 * Testing the behavior of array_combine() by passing array with
16 echo "*** Testing array_combine() : binary safe checking ***\n";
23 var_dump( array_combine($arr_binary, $arr_binary) );
26 var_dump( array_combine($arr_normal, $arr_binary) );
29 var_dump( array_combine($arr_binary, $arr_normal) );
34 *** Testing array_combine() : binary safe checking ***
H A Darray_combine_basic.phpt2 Test array_combine() function : basic functionality
5 /* Prototype : array array_combine(array $keys, array $values)
11 echo "*** Testing array_combine() : basic functionality ***\n";
18 var_dump( array_combine($keys_array, $values_array) );
23 var_dump( array_combine($keys_array, $values_array) );
28 var_dump( array_combine($keys_array, $values_array) );
33 *** Testing array_combine() : basic functionality ***
H A Darray_combine_variation5.phpt2 Test array_combine() function : usage variations - associative array with different values(Bug#4342…
5 /* Prototype : array array_combine(array $keys, array $values)
12 * Testing the functionality of array_combine() by passing various
17 echo "*** Testing array_combine() : assoc array with diff values to both \$keys and \$values argume…
69 // loop through each sub-array within $arrays to check the behavior of array_combine()
73 var_dump( array_combine($array, $array) );
83 *** Testing array_combine() : assoc array with diff values to both $keys and $values argument ***
H A Darray_combine_variation4.phpt2 Test array_combine() function : usage variations - associative array with different keys(Bug#43424)
5 /* Prototype : array array_combine(array $keys, array $values)
12 * Testing the functionality of array_combine() by passing different
17 echo "*** Testing array_combine() : assoc array with diff keys to both \$keys and \$values argument…
76 // loop through each sub-array within $arrays to check the behavior of array_combine()
81 var_dump( array_combine($array, $array) );
91 *** Testing array_combine() : assoc array with diff keys to both $keys and $values argument ***
H A Darray_combine_variation3.phpt2 Test array_combine() function : usage variations - different arrays(Bug#43424)
5 /* Prototype : array array_combine(array $keys, array $values)
13 * array_combine() behaves in an expected way with the arguments passed to the function
16 echo "*** Testing array_combine() : Passing different types of arrays to both \$keys and \$values a…
76 // loop through each sub-array within $arrays to check the behavior of array_combine()
81 var_dump( array_combine($array, $array) );
88 *** Testing array_combine() : Passing different types of arrays to both $keys and $values argument …
/PHP-7.3/ext/standard/
H A Dphp_array.h104 PHP_FUNCTION(array_combine);
H A Dbasic_functions.c3405 PHP_FE(array_combine, arginfo_array_combine)
H A Darray.c6361 PHP_FUNCTION(array_combine) argument

Completed in 38 milliseconds