get_child_count
get_child_count($include_subchildren=false); - get the number of first-level child interfaces for the DOM element (available from version 4.6.41)
the input Function accepts parameters:
$include_subchildren – also search for all child subelements. (available from version 7.0.23)
After testing, the function returns the result of its work to the script :
Number of child elements – the number of child elements for the specified element