- PHP 手册
- 函数参考
- XML 操作
- DOM
- DOMNode
DOMNode::hasAttributes
(PHP 5, PHP 7, PHP 8)
DOMNode::hasAttributes — Checks if node has attributes
说明
public DOMNode::hasAttributes(): bool
This method checks if the node has attributes. The tested node has to be
an XML_ELEMENT_NODE
.
参数
此函数没有参数。
返回值
成功时返回 true
, 或者在失败时返回 false
。
参见
- DOMNode::hasChildNodes() - Checks if node has children
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/domnode.hasattributes.php
8288分类目录声明:本站部分文章来源于网络,版权属于原作者所有。如有转载或引用文章/图片涉及版权问题,请联系我们处理.我们将在第一时间删除!
联系邮箱:tsk@qq.com