PHP Manual

  • English French German Portuguese Spanish
PHP Manual Function Reference XML Manipulation DOM DOMElement DOMElement::getAttributeNode
DOMElement DOMElement::__construct DOMElement::getAttribute DOMElement::getAttributeNode DOMElement::getAttributeNodeNS DOMElement::getAttributeNS DOMElement::getElementsByTagName DOMElement::getElementsByTagNameNS DOMElement::hasAttribute DOMElement::hasAttributeNS DOMElement::removeAttribute DOMElement::removeAttributeNode DOMElement::removeAttributeNS DOMElement::setAttribute DOMElement::setAttributeNode DOMElement::setAttributeNodeNS DOMElement::setAttributeNS DOMElement::setIdAttribute DOMElement::setIdAttributeNode DOMElement::setIdAttributeNS
  • DOMElement::getAttribute
  • DOMElement::getAttributeNodeNS

DOMElement::getAttributeNode

(PHP 5)

DOMElement::getAttributeNode — Returns attribute node

Description

public DOMAttr DOMElement::getAttributeNode ( string $name )

Returns the attribute node with name name for the current element.

Parameters

name

The name of the attribute.

Return Values

The attribute node.

See Also

  • DOMElement::hasAttribute() - Checks to see if attribute exists
  • DOMElement::setAttributeNode() - Adds new attribute node to element
  • DOMElement::removeAttributeNode() - Removes attribute

© Copyright © 2001-2015 The PHP Group.

© Copyright 2014. Diseñado por PHP Manual usando jfCMS.