j0se Posted August 3, 2010 Share Posted August 3, 2010 I want to create a loop foreach [@attributes] I seem to be stuck and cant figure it out. any info would be helpful. Thanks! Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [iD] => 5760861 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [iD] => 5335615 ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [iD] => 6080572 ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [iD] => 5178898 ) ) ) Quote Link to comment Share on other sites More sharing options...
joel24 Posted August 4, 2010 Share Posted August 4, 2010 what are you trying to do?! have a look at the XML attribute foreach example here Quote Link to comment Share on other sites More sharing options...
j0se Posted August 4, 2010 Author Share Posted August 4, 2010 This is exactly what I needed. Thank you. 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.