Zend_Config::rewind PHP Method

rewind() public method

Defined by Iterator interface
public rewind ( )
    public function rewind()
    {
        $this->_skipNextIteration = false;
        reset($this->_data);
        $this->_index = 0;
    }

Usage Example

 public function testZF6995_toArrayDoesNotDisturbInternalIterator()
 {
     $config = new Zend_Config(range(1, 10));
     $config->rewind();
     $this->assertEquals(1, $config->current());
     $config->toArray();
     $this->assertEquals(1, $config->current());
 }
All Usage Examples Of Zend_Config::rewind