next up previous contents
Next: php_iterator::done Up: Function Reference Previous: php_array::remove   Contents

php_iterator

#include "php_arr.h"

class php_iterator {
public:
  php_iterator(php_array &a, bool type_warnings = false);
  ~php_iterator();
  ...
};

Description: The php_iterator object provides access to the keys and values stored in a php_array object. The required php_array a argument is the array this iterator will provide access to. The type_warnings value is optional and defaults to false. If set to true the iterator will write an error to stderr when it is forced to use convert a key or value into the required C++ data type.



Andrew Bosworth 2008-03-24