iter_getdata [function]
iter_getdata( iterator var, bool pushkey = false, bool pushvalue = true )
returns key/value data from iterator
- if key is requested, it is returned first
- if neither key not value are requested,
null
is returned and a warning is emitted
- More info about iterators: Iterator system
it = get_iterator( [ 5 ] ); // retrieves iterator from array [5] iter_advance( it ); // returns true, indicating that the current position is still a valid one (key,value) = iter_getdata( it, true ); // returns 0, 5 -- key, value