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

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

WBOY
WBOYOriginal
2016-06-13 11:45:19884browse

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 />?>

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

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