Documentación offline PHP master

DOMElement::hasAttributeNS

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

DOMElement::hasAttributeNS

Comprueba si un atributo existe

Descripción#

php public DOMElement::hasAttributeNS(string $namespace, string $localName): boolphp

Indica si un atributo en el espacio de nombres namespace llamado localName existe como miembro del elemento.

Parámetros#

namespace
La URI del espacio de nombres.

localName
El nombre local.

Valores devueltos#

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

Véase también#

DOMElement::hasAttribute, DOMElement::getAttributeNS, DOMElement::setAttributeNS, DOMElement::removeAttributeNS