PHP getChildren() Function

PHP SimpleXML Reference : Get the child elements of the current element and output the name and data

Definition and Usage

The getChildren() function returns the child elements of the current element.

Syntax

SimpleXMLIterator::getChildren()

Technical Details

Return Value: A SimpleXMLIterator object containing the children of the current element
PHP Version: 5.0+

❮ PHP SimpleXML Reference