Skip to content
Advertisement

Php : simplexml – Getting attribute value

JavaScript

Above is the xml file I want to read, I can get title, media price and even Guid’s isPermalink attribute. But I cannot get media:thumbnail attribute Below is my code.

JavaScript

How do I get media:thumbnail attribute?

Advertisement

Answer

Try to cycle through thumbnail attributes

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement