Home  >  Article  >  Backend Development  >  使用TP怎样将数据库中的数据转换为xml解决方案

使用TP怎样将数据库中的数据转换为xml解决方案

WBOY
WBOYOriginal
2016-06-13 13:52:56816browse

使用TP怎样将数据库中的数据转换为xml
怎么样将数据库的数据转换为xml,一张有id,productname,country字段的表,如何将里面的几十条数据转换为xml。使用Thinkphp的话要怎样做

------解决方案--------------------
循序xml要求的格式echo输出就行了,这有什么技术难点吗
------解决方案--------------------
TP核心下functions下有data_to_xml

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn