PHP 8.3.4 Released!

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

public XMLReader::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ón Descripción
8.0.0 This function can no longer return false.

Ver también

add a note

User Contributed Notes

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