next up previous contents
Next: php_iterator::get_key_type Up: Function Reference Previous: php_iterator::get_key_c_string   Contents

php_iterator::get_key_long

#include "php_arr.h"

long 
php_iterator::get_key_long();

Description: Return the key of the element at the current iterator position as a long. If type conversion is necessary it may generate a type mismatch warning if those warnings are enabled.

Errors: It is an error to call this function on an iterator in an invalid position (see php_iterator::done).



Andrew Bosworth 2008-03-24