You are here: php5 iterate an object « PHP « IT news, forums, messages
php5 iterate an object

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")



[Reply to this message]

Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация