欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

xml-微信多图文foreach验证失败,求找茬!头要炸了!

程序员文章站 2022-05-19 13:09:19
...
xmlphp微信

请问这段代码哪里有错?

 $newsArr = array(         array("Title"=>"this is first item",            "Description"=>"this is first item description",            "PicUrl"=>"http://img4.imgtn.bdimg.com/it/u=2943793272,3641314298&fm=21&gp=0.jpg",            "Url"=>"http://www.baidu.com"         ),         array("Title"=>"this is second item",             "Description"=>"this is second item description",             "PicUrl"=>"http://img2.imgtn.bdimg.com/it/u=945726929,542696667&fm=21&gp=0.jpg",             "Url"=>"http://www.baidu.com"         ),         array("Title"=>"this is thired",            "Description"=>"this is thired",            "PicUrl"=>"http://img1.imgtn.bdimg.com/it/u=2783016379,35786742&fm=21&gp=0.jpg",            "Url"=>"http://www.baidu.com"         ));foreach ($newsArr as $key => $value) {   $itemstr .= "         
";}   $result = "%s".count($newsArr)."".$itemstr."";   $newsInfo = sprintf($result, $fromUser , $toUser , time());   echo $newsInfo;
相关标签: xml php 微信