| SimpleXMLIterator::hasChildrenChecks whether the current element has sub elements. Description
   public bool SimpleXMLIterator::hasChildren
    ( void
   ) This method checks whether the current SimpleXMLIterator element has sub-elements. ParametersThis function has no parameters. Return Values
    Examples
 Example #1 Check whether the current element has sub-elements 
<?phpThe above example will output: 
object(SimpleXMLIterator)#2 (2) {
  ["title"]=>
  string(10) "PHP Basics"
  ["author"]=>
  string(9) "Jim Smith"
}
 |