Lines Matching refs:array_combine
2 Test array_combine() function : error conditions - empty array
5 echo "*** Testing array_combine() : error conditions specific to array_combine() ***\n";
7 // Testing array_combine by passing empty arrays to $keys and $values arguments
8 echo "\n-- Testing array_combine() function with empty arrays --\n";
9 var_dump( array_combine(array(), array()) );
11 // Testing array_combine by passing empty array to $keys
12 echo "\n-- Testing array_combine() function with empty array for \$keys argument --\n";
14 var_dump( array_combine(array(), array(1, 2)) );
19 // Testing array_combine by passing empty array to $values
20 echo "\n-- Testing array_combine() function with empty array for \$values argument --\n";
22 var_dump( array_combine(array(1, 2), array()) );
27 // Testing array_combine with arrays having unequal number of elements
28 echo "\n-- Testing array_combine() function by passing array with unequal number of elements --\n";
30 var_dump( array_combine(array(1, 2), array(1, 2, 3)) );
37 *** Testing array_combine() : error conditions specific to array_combine() ***
39 -- Testing array_combine() function with empty arrays --
43 -- Testing array_combine() function with empty array for $keys argument --
44 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
45 -- Testing array_combine() function with empty array for $values argument --
46 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
47 -- Testing array_combine() function by passing array with unequal number of elements --
48 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements