note 14624 deleted from function.xml-parse-into-struct by sniper

From: Date: Fri, 05 Dec 2003 00:32:27 +0000
Subject: note 14624 deleted from function.xml-parse-into-struct by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61424@lists.php.net to get a copy of this message
Note Submitter: bob@microNOSPAMtech.com ---- I took gdemartini@bol.com.br's example along with nyk@cowham.net's addition and wrote up a little function to see exactly what is in the struct. function ShowXMLTree($tree, $depth) { foreach($tree as $key => $value) { if(is_array($value)) { ShowXMLTree($value, ++$depth); } else { for($i=0; $i<$depth; $i++) { echo "&nbsp;&nbsp;&nbsp;&nbsp;"; } echo "tree[\"$key\"]==\"$value\" <br>"; } } } // So you could do something like this: $tree = GetXMLTree ("XML_test.xml"); ShowXMLTree($tree, 0);

« previous php.notes (#61424) next »