DOMNode::cloneNode
DOMNode::hasChildNodes
DOMNode
PHP Manual

# DOMNode::hasAttributes

(PHP 5)

DOMNode::hasAttributes — Checks if node has attributes

### Descripción

bool DOMNode::hasAttributes ( void )

This method checks if the node has attributes. The tested node have to be an `XML_ELEMENT_NODE`.

### Valores retornados

Devuelve `TRUE` si todo se llevó a cabo correctamente, `FALSE` en caso de fallo.

### Ver también

- DOMNode::hasChildNodes

DOMNode::cloneNode
DOMNode::hasChildNodes
DOMNode
PHP Manual