for instance if FRUIT is call as below then only the nodes in the level of FRUIT will display Which are node FRUIT itself and node MEAT.
PHP Code:$hierachy = new hierachy;
$iterator = new RecursiveIteratorIterator(new recursiveArrayIterator($hierachy->Somefunction('FRUIT')));
try {
foreach($iterator as $key=>$value)
{
echo $value.'<br />';
}
}
catch(Exception $e)
{
echo $e->getMessage();
} ?>




Reply With Quote







)

Bookmarks