php输出xml格式字符串(用的这个)

yipeiwu_com5年前PHP代码库
复制代码 代码如下:

<?php
header("Content-type:text/xml;charset=utf-8");
$aaa =<<<html
<?xml version='1.0' encoding='utf-8'?>
<SubFucParams>
<Version>1.0.0.0</Version>
<Publisher>d3e59f1d78f344c682bef3517a4b667f</Publisher>
<PublisherName>rong</PublisherName>
<Story>
<Type>.txt</Type>
<Title>
<MainTitle>www</MainTitle>
</Title>
<Author>
<Name>wwww</Name>
</Author>
<Source>移动采编</Source>
<DocContent>Wwwwwww</DocContent>
<StoryType>Text</StoryType>
</Story>
</SubFucParams>
html;
echo $aaa;
?>

相关文章

php 验证码制作(网树注释思想)

1,生成随机数 用for循环确定生成几个随机数。 用随机函数生成范围内随机数。例如rand(1,15),生成1到15之间的数字。 用16位进制函数把生成数字字母化。dechex(rand...

PHP数组的交集array_intersect(),array_intersect_assoc(),array_inter_key()函数的小问题

返回一个交集共有元素的数组(只是数组值得比较)、array_intersect_assoc()函数是将键值和值绑定,一起比较交集部分、array_intersect_key()函数是将两...

在WordPress中使用PHP脚本来判断访客来自什么国家

区分访客国家有什么用? 这里是几个我利用该功能的例子. 1.区分网站功能 这个博客有翻译文章的功能, 这是为了方便海外访客阅读文章, 但对中国人显得十分多余. 所以我通过 IP...

php自动适应范围的分页代码

复制代码 代码如下:<?php function page($page,$total,$phpfile,$pagesize=10,$pagelen=7){  &...

php number_format() 函数通过千位分组来格式化数字的实现代码

定义和用法number_format() 函数通过千位分组来格式化数字。 语法number_format(number,decimals,decimalpoint,separator)...