/ Published in: PHP
![](/img/icon_sav.png?v3)
Simple piece of PHP to get the contents of a specified tag from an XML file and return it
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Get the contents of a specified tag ($tag) of the specified XML file ($xmlFile) function getXmlData($xmlFile, $tag) { return $output; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)