Lines Matching refs:key
2 Test key(), current(), next() & reset() functions
6 mixed key ( array &$array ) -> returns the index element of the current array position
20 array(1 => 'One', 2 => 'two', 3 => "three") // associative array with key as integers
42 var_dump( key($sub_array) ); // key of the current element
47 var_dump( key($sub_array) ); // access the array after reset
62 var_dump( key($sub_array) ); // key of the current element
67 var_dump( key($sub_array) ); // access the array after reset
78 var_dump( key($unset_array) );
85 var_dump( key() );
92 var_dump( key($temp_array, $temp_array) );
101 var_dump( key($int_var) );
102 var_dump( key($float_var) );
103 var_dump( key($string) );
465 Warning: key() expects parameter 1 to be array, null given in %s on line %d
476 Warning: key() expects exactly 1 parameter, 0 given in %s on line %d
488 Warning: key() expects exactly 1 parameter, 2 given in %s on line %d
500 Warning: key() expects parameter 1 to be array, integer given in %s on line %d
503 Warning: key() expects parameter 1 to be array, double given in %s on line %d
506 Warning: key() expects parameter 1 to be array, string given in %s on line %d