What does this code do? Recursive Iterator in php?
        Posted  
        
            by Ali
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ali
        
        
        
        Published on 2010-05-02T11:10:00Z
        Indexed on 
            2010/05/02
            11:37 UTC
        
        
        Read the original article
        Hit count: 410
        
I'm working on a zend framework based email project and I'm following some code samples online.. I can't understand this line of code which apparently loops through different 'parts' of an email message. I have no idea how it works btw and suspect that theres some error taking place which my parser isn't showing right.
foreach (new RecursiveIteratorIterator($mail->getMessage($i)) as $ii=>$part)
what does the above foreach loop mean?
© Stack Overflow or respective owner