rewind() public method

Defined by Iterator interface
public rewind ( )
 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());
 }
Example #2
0
 /**
  * Defined by Iterator interface
  */
 public function rewind()
 {
     if ($this->_data === null) {
         $this->read();
     }
     parent::rewind();
 }