PHP : Objects and XML
![](https://i0.wp.com/lefred.be/wp-content/uploads/2016/05/IMG_6573.jpg?fit=768%2C576&ssl=1)
Just some nice example to show how to create an XML output from an object. And also create an object from an XML source.
Do be able to run those example, you must install the PEAR packages called XML/Serializer
.
First example, creation of the XML output: