无为清净楼资源网 Design By www.qnjia.com

PHP attributes() 函数

实例

返回 XML 的 body 元素的属性和值:

<"2013-01-01" type="private">Don't forget me this weekend!</body> 
</note> 
XML;
$xml=simplexml_load_string($note); 
foreach($xml->body[0]->attributes() as $a => $b) 
{ 
echo $a,'="',$b,""<br>"; 
} 
"htmlcode">
attributes( _ns,is_prefix_ );

PHP attributes()函数讲解

PHP attributes()函数讲解

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对的支持。如果你想了解更多相关内容请查看下面相关链接

标签:
attributes()函数,php,attributes()函数,attributes()函数讲解

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com