note 79730 modified in function.simplexml-element-children by danbrown

From: Date: Wed, 16 Sep 2009 15:33:55 +0000
Subject: note 79730 modified in function.simplexml-element-children by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160634@lists.php.net to get a copy of this message
Just a warning that the iterable returned from children() contains the '@attributes' key, which is "invisible" during a foreach but can be seen if using a different construct, such as list()=each() or casting to an array before iterating w/ foreach. --was-- Just a warning that the iterable returned from children() contains the '@attributes' key, which is "invisible" during a foreach but can be seen if using a different construct, such as list()=each() or casting to an array before iterating w/ foreach. http://php.net/manual/en/function.simplexml-element-children.php

« previous php.notes (#160634) next »