php5 iterate an object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have an object that looks like this:

Test Object
        (
            [config] => TestConfig Object
                (
                    [file:protected] => test.conf
                    [kill:protected] => 1
                )

            [location:private] => "test"
}


I'm trying to write an PHP5 iterator that can iterate over an object but I'm not sure how. The manual for PHP5 iterators seems to only work with arrays. How do I iterate over an object and only get the name of the attribute ("config") and not the entire name ("Test::config")

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux