php返回数据格式

PHP返回HTML代码:     header('Content-type:text/html; charset=utf-8');

PHP返回xml代码:header('content-type: text/xml; charset=utf-8');

原文地址:https://www.cnblogs.com/maidongdong/p/7805103.html