Retracted. Solution found.
| SitePoint Sponsor |

Retracted. Solution found.
Last edited by imagize; May 22, 2007 at 21:48.
What's wrong with the good old loops?
PHP Code:foreach ($array as $a){
if(is_array($a)){
foreach($a as $b) echo $b.'<br />';
} else {
echo $a.'<br />';
}
}
Saul

Sorry I should have been more clear, I am actually just trying to give the iterator a go, for learning purposes.

Oh dear, even when you attain your *PHP5 ZCE status - you mean you still have to keep learning ... ?
Got an ArrayIterator but RecursiveArrayIterator is 5.1 or better - not on this machine, sorry.
Off Topic:
As I haven't even got mine ... how long can the road to enlightenment be?
Last edited by Cups; May 23, 2007 at 02:42. Reason: ambiguous remark!
Lionheart, for future reference when you ask a question don't delete the question once you have the answer figured out. Instead, post your solution so others who may have a similar question can gain insight from reading the post.. This has one exception: completely useless and irrelevant or idiotic posts, which i don't think this thread would fall under.

"Ahh, No Mr Cups ... I don't expect you talk, I expect you to die." - Goldflingerdear Mr. Cups
LOL
Bookmarks