PHP – Get data from XML to HTML file with PHP

Now continuing with PHP – today I will show you how to use a simple xml file and to get its data to a PHP file in the Internet. Not as difficult as it seems actually – XML files are quite OK, mainly due to the fact that their logic is really easy to understand. And PHP handles them pretty well. Thus, imagine that you want to build the following site:cska_sofia

 

This is what you would need as XML for this data:

Not bad. Anyone can understand the idea of XML just by reading the file. Now, let’s see how we build the site above, using the resources from the XML:

Not bad! That is all! Really the “$team->olala->lalala” is working great!

Enjoy it in github as well – XML and PHP! 🙂

About

A VBA Developer.

Tagged with: , ,