Jason Barnett wrote:
Gerard Samuel wrote:
...
$array = array(0 => array('world'));
class RecursiveArrayIterator extends ArrayIterator implements
RecursiveIterator
{
function hasChildren()
{
return (is_array($this->current()));
}
function getChildren()
{
return new self
Gerard Samuel wrote:
...
$array = array(0 => array('world'));
class RecursiveArrayIterator extends ArrayIterator implements
RecursiveIterator
{
function hasChildren()
{
return (is_array($this->current()));
}
function getChildren()
{
return new self($this->current());
2 matches
Mail list logo