PHP 8.5.0 Alpha 2 available for testing

DOMNode::hasAttributes

(PHP 5, PHP 7, PHP 8)

DOMNode::hasAttributes Comprueba si un nodo tiene atributos

Descripción

public DOMNode::hasAttributes(): bool

Este método comprueba si el nodo tiene atributos. El nodo comprobado tiene que ser un XML_ELEMENT_NODE.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top