您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

DomNode->attributes

(No version information available, might be only in CVS)

DomNode->attributes — Returns list of attributes

说明

array DomNode->attributes ( void )

This function only returns an array of attributes if the node is of type XML_ELEMENT_NODE.

(PHP >= 4.3 only) If no attributes are found, NULL is returned.