Re: SimpleXML behaves like chameleon
| From: | Jirka Kosek | Date: | Mon, 31 Jan 2005 22:05:48 +0000 |
| Subject: | Re: SimpleXML behaves like chameleon | ||
| References: | 1 2 3 4 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-529@lists.php.net to get a copy of this message | ||
Christian Stocker wrote:
You can't rely on print_r. It's of no value, what that says, so don't try to interpret that ;) (the same goes for var_dump, btw). The iterator interface (foreach et al.) will do the correct thing for you.Thanks. I of course use foreach for walking through sibling elements of the same name. I tried to use array functions because I need to know how many siblings elements are here in order to format result correctly. -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------