Posted by Henrik Gemal on 01/22/06 18:53
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")
Navigation:
[Reply to this message]
|