Lines Matching refs:element
6 mixed key ( array &$array ) -> returns the index element of the current array position
7 mixed current ( array &$array ) -> returns the current element in the array
8 …ed next ( array &$array ) -> similar to current() but advances the internal pointer to next element
9 mixed reset ( array &$array ) -> Reset the internal pointer to first element
13 array(0), // array with element as 0
14 array(1), // array with single element
41 var_dump( current($sub_array)); // current element
42 var_dump( key($sub_array) ); // key of the current element
43 var_dump( next($sub_array) ); // move to next element
46 var_dump( reset($sub_array) ); // reset the internal pointer to first element
61 var_dump( current($sub_array)); // current element
62 var_dump( key($sub_array) ); // key of the current element
63 var_dump( next($sub_array) ); // move to next element
66 var_dump( reset($sub_array) ); // reset the internal pointer to first element