PHP getName() Function

PHP SimpleXML Reference : Return the name of the XML element and the children

Definition and Usage

The getName() function returns the name of the XML element.

Syntax

SimpleXMLElement::getName()

Technical Details

Return Value: The name of the XML element, as a string
PHP Version: 5.1.3+

❮ PHP SimpleXML Reference