array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'domelement.getattribute.php', 1 => 'DOMElement::getAttribute', ), 'up' => array ( 0 => 'class.domelement.php', 1 => 'DOMElement', ), 'prev' => array ( 0 => 'domelement.construct.php', 1 => 'DOMElement::__construct', ), 'next' => array ( 0 => 'domelement.getattributenames.php', 1 => 'DOMElement::getAttributeNames', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'pt_BR', 'path' => 'reference/dom/domelement/getattribute.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
DOMElement::getAttribute — Retorna o valor do atributo
Obtém o valor do atributo com o nome qualifiedName
para o nó atual.
qualifiedName
O nome do atributo.
O valor do atributo, ou uma string vazia se nenhum atributo com o
qualifiedName
fornecido for encontrado.