有xml文件,PHP如何如何将xml转换为数组呢?
随手搜了下,主要利用了json的编码和反编码实现,示例代码如下:

$xml = '<?xml version="1.0" encoding="utf-8"?&gt[......]

阅读全文