SimpleXMLIterator::getChildrenReturns the sub-elements of the current element Description
public SimpleXMLIterator SimpleXMLIterator::getChildren
( void
)
This method returns a SimpleXMLIterator object containing sub-elements of the current SimpleXMLIterator element. ParametersThis function has no parameters. Return ValuesReturns a SimpleXMLIterator object containing the sub-elements of the current element. Examples
Example #1 Return the sub-elements of the current element
<?php The above example will output: The title is 'PHP Basics' from the class SimpleXMLIterator The author is 'Jim Smith' from the class SimpleXMLIterator |