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

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

WBOY
Release: 2016-06-13 09:59:20
Original
1015 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template