Home > Backend Development > PHP Tutorial > PHP如何返回一个构造好的xml字符串为空

PHP如何返回一个构造好的xml字符串为空

WBOY
Release: 2016-06-13 11:45:19
Original
955 people have browsed it

PHP怎么返回一个构造好的xml字符串为空?

<?php<br />	$content="dddd<br>";<br />	$content.="<xml><br />		<ToUserName><![CDATA[ssssssssss]]></ToUserName><br />		<FromUserName><![CDATA[aaaaaaaaaaaaaaa]]></FromUserName><br />		<CreateTime>{time()}</CreateTime><br />		<MsgType><![CDATA[fffffffffffffffffffff]]></MsgType>";<br />	$content.="<br>ffffff";<br />	echo $content;  ///这里在浏览器上显示只有dddd,为什么?<br />?>
Copy after login

在浏览器上只有dddd,而后面的内容都没有,并且连ffffff都没有显示,何解?

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