SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    SitePoint Zealot imagize's Avatar
    Join Date
    Oct 2004
    Location
    Australia
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Implementing Iterator

    Retracted. Solution found.
    Last edited by imagize; May 22, 2007 at 21:48.

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Zealot imagize's Avatar
    Join Date
    Oct 2004
    Location
    Australia
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I should have been more clear, I am actually just trying to give the iterator a go, for learning purposes.

  4. #4
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    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!

  5. #5
    SitePoint Guru mwolfe's Avatar
    Join Date
    Mar 2005
    Posts
    912
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  6. #6
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Off Topic:


    Quote Originally Posted by Cups View Post
    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?
    The road to enlightenment is endless, dear Mr. Cups. Get ready for lifelong learning.
    Saul

  7. #7
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    dear Mr. Cups
    "Ahh, No Mr Cups ... I don't expect you talk, I expect you to die." - Goldflinger

    LOL


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •