XMLReader::getAttributeNs

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

XMLReader::getAttributeNsObtiene el valor de un atributo por su nombre local y URI

Descripción

publicXMLReader::getAttributeNs(string$name, string$namespace): ?string

Devuelve el valor de un atributo por su nombre y URI del namespace o una cadena vacia si el atributo no existe o no está posicionado en el eleménto.

Parámetros

name

El nombre local.

namespace

El URI del namespace.

Valores devueltos

The value of the attribute, or null if no attribute with the given name and namespace is found or not positioned of element.

Historial de cambios

VersiónDescripción
8.0.0 This function can no longer return false.

Ver también

To Top