Lines Matching refs:array_key_exists
2 Test array_key_exists() function : error conditions - Pass incorrect number of args
5 /* Prototype : bool array_key_exists(mixed $key, array $search)
12 * Pass incorrect number of arguments to array_key_exists() to test behaviour
15 echo "*** Testing array_key_exists() : error conditions ***\n";
17 //Test array_key_exists with one more than the expected number of arguments
18 echo "\n-- Testing array_key_exists() function with more than expected no. of arguments --\n";
22 var_dump( array_key_exists($key, $search, $extra_arg) );
24 // Testing array_key_exists with one less than the expected number of arguments
25 echo "\n-- Testing array_key_exists() function with less than expected no. of arguments --\n";
27 var_dump( array_key_exists($key) );
33 *** Testing array_key_exists() : error conditions ***
35 -- Testing array_key_exists() function with more than expected no. of arguments --
37 Warning: array_key_exists() expects exactly 2 parameters, 3 given in %s on line %d
40 -- Testing array_key_exists() function with less than expected no. of arguments --
42 Warning: array_key_exists() expects exactly 2 parameters, 1 given in %s on line %d