next() should not return the value, ever. This is not an issue. Iteration works like thus: next() - moves pointer one place forward (doesn't care if it's valid or not) valid() - checks pointer is in a valid place (here's where we check that, returns boolean) current() - returns current value So the next() method below is doing more than it should - it should only advance the pointer. - Davey On Sep 28, 2006, at 5:49 AM, Ahmed Shreef wrote:
|
- [fw-general] Zend_Config_Array and iteration Irina Khmelinina
- Re: [fw-general] Zend_Config_Array and iteration Ahmed Shreef
- Re: [fw-general] Zend_Config_Array and iteration Irina Khmelinina
- Re: [fw-general] Zend_Config_Array and itera... Ahmed Shreef
- Re: [fw-general] Zend_Config_Array and i... Irina Khmelinina
- Re: [fw-general] Zend_Config_Array ... Ahmed Shreef
- Re: [fw-general] Zend_Config_Ar... Davey Shafik
- Re: [fw-general] Zend_Confi... Simon Mundy
- Re: [fw-general] Zend_Confi... Irina Khmelinina
- Re: [fw-general] Zend_Confi... Darby Felton
- Re: [fw-general] Zend_Confi... Rob Allen
