Re: [PHP-XML-DEV] SimpleXML behaves like chameleon
[email protected] (Jirka Kosek) Mon, 31 Jan 2005 23:05:48 +0100
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
Christian Stocker wrote: > You can't rely on print_r. It's of no value, what that says, so don't=20 > try to interpret that ;) (the same goes for var_dump, btw). The iterato= r=20 > interface (foreach et al.) will do the correct thing for you. Thanks. I of course use foreach for walking through sibling elements of=20 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. --=20 ------------------------------------------------------------------ Jirka Kosek e-mail: [email protected] http://www.kosek.cz ------------------------------------------------------------------ Profesion=E1ln=ED =B9kolen=ED a poradenstv=ED v oblasti technologi=ED = XML. Pod=EDvejte se na n=E1=B9 nov=EC spu=B9t=ECn=FD web http://DocBook.= cz Podrobn=FD p=F8ehled =B9kolen=ED http://xmlguru.cz/skoleni/ ------------------------------------------------------------------