Home > PHP > Function > DOM XML (PHP 4) > DomElement->tagname()

DomElement->tagname()

DomElement->tagname - Returns the name of the current element

Syntax

string DomElement->tagname ()

Arguments

-

Description

Returns the name of the current node. Calling this function is the same as accessing the tagnameproperty, or calling DomNode->node_nameon the current node.

Version

PHP 4.1.0

Return value

Returns the name of the current DomElementnode.