I need to generate XML structures on the fly using PHP.
I’ve seen many different ways and libraries, but I would like to know which is the most efficient.
In general, I have arrays and its content has to be returned as an XML structure.
Thanks in advance.
Most cpu/cycle efficient: probably if you build strings by hand. Most developer/time/clarity efficient: probably SimpleXML.