jd2007 Posted December 12, 2007 Share Posted December 12, 2007 <?php $xml = new DOMDocument(); $xml->load("caldb_users.xml"); $i=$xml->getElementsByTagName("db"); foreach ($i as $x) { echo $x; } ?> Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 12, 2007 Share Posted December 12, 2007 From the php manual - As of PHP 5, it is possible to iterate objects too. Here is even more - http://www.php.net/manual/en/language.oop5.iterations.php Quote Link to comment Share on other sites More sharing options...
jd2007 Posted December 12, 2007 Author Share Posted December 12, 2007 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.