neon Source Posted April 12, 2009 Share Posted April 12, 2009 just quickly looking for the method to return the number of children in a given SimpleXMLElement. Cant seem to find it in any docs. thanks. Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted April 12, 2009 Share Posted April 12, 2009 It shouldn't be that hard what is the code you got so far and what is the xml? Quote Link to comment Share on other sites More sharing options...
neon Source Posted April 12, 2009 Author Share Posted April 12, 2009 It shouldn't be that hard what is the code you got so far and what is the xml? nothing worth posting, just $xml = simplexml_load_file("banners/banners.xml"); then i just need to get the number of banners in the file before i can do anything. Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted April 12, 2009 Share Posted April 12, 2009 Can you post the xml source or a part of it so at least the structure is visible? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 12, 2009 Share Posted April 12, 2009 using simple xml??? http://us2.php.net/manual/en/function.simplexml-element-children.php echo count($xmlobj->children()); 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.