Lines Matching refs:array_combine
2 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
18 echo "\n-- Testing array_combine() function with more than expected no. of arguments --\n";
22 var_dump( array_combine($keys,$values, $extra_arg) );
24 // Testing array_combine with one less than the expected number of arguments
25 echo "\n-- Testing array_combine() function with less than expected no. of arguments --\n";
27 var_dump( array_combine($keys) );
32 *** Testing array_combine() : error conditions ***
34 -- Testing array_combine() function with Zero arguments --
36 Warning: array_combine() expects exactly 2 parameters, 0 given in %s on line %d
39 -- Testing array_combine() function with more than expected no. of arguments --
41 Warning: array_combine() expects exactly 2 parameters, 3 given in %s on line %d
44 -- Testing array_combine() function with less than expected no. of arguments --
46 Warning: array_combine() expects exactly 2 parameters, 1 given in %s on line %d