Lines Matching refs:key
2 Test key() function : error conditions - Pass incorrect number of args
5 /* Prototype : mixed key(array $array_arg)
6 * Description: Return the key of the element currently pointed to by the internal array pointer
11 * Pass incorrect number of arguments to key() to test behaviour
14 echo "*** Testing key() : error conditions ***\n";
17 echo "\n-- Testing key() function with Zero arguments --\n";
18 var_dump( key() );
21 echo "\n-- Testing key() function with more than expected no. of arguments --\n";
24 var_dump( key($array_arg, $extra_arg) );
28 *** Testing key() : error conditions ***
30 -- Testing key() function with Zero arguments --
32 Warning: key() expects exactly 1 parameter, 0 given in %s on line %d
35 -- Testing key() function with more than expected no. of arguments --
37 Warning: key() expects exactly 1 parameter, 2 given in %s on line %d