package Default

 Methods

(PHP 5 &gt;= 5.0.0)<br/> Return the current element

current() : mixed
link http://php.net/manual/en/iterator.current.php

Returns

mixedCan return any type.

(PHP 5 &gt;= 5.1.0)<br/> Returns an iterator for the current entry.

getChildren() : \RecursiveIterator
link http://php.net/manual/en/recursiveiterator.getchildren.php

Returns

\RecursiveIteratorAn iterator for the current entry.

(PHP 5 &gt;= 5.1.0)<br/> Returns if an iterator can be created fot the current entry.

hasChildren() : boolean
link http://php.net/manual/en/recursiveiterator.haschildren.php

Returns

booleantrue if the current entry can be iterated over, otherwise returns false.

(PHP 5 &gt;= 5.0.0)<br/> Return the key of the current element

key() : integer | null
link http://php.net/manual/en/iterator.key.php

Returns

integernullscalar on success, or null on failure.

(PHP 5 &gt;= 5.0.0)<br/> Move forward to next element

next() : void

(PHP 5 &gt;= 5.0.0)<br/> Rewind the Iterator to the first element

rewind() : void

(PHP 5 &gt;= 5.0.0)<br/> Checks if current position is valid

valid() : boolean
link http://php.net/manual/en/iterator.valid.php

Returns

booleanThe return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

 Properties

 

$children

$children : array

Default

array()
 

$index

$index : integer

Default

0