當前位置:成語大全網 - 新華字典 - 在PHP中將數組轉換為XML格式

在PHP中將數組轉換為XML格式

php數組格式:

Array to XML:

通過使用PHP的擴展SimpleXML,我們將uses_array轉換為xml格式。

保存成功的XML文件:

The users.xml file contains the following xml.

附註:

Insert XML Into Databse

If you want to save the XML into the database, then replace the $xml_file variable line with the following code line. Now you can insert $xml_file variable into the database.