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

Reply via email to