|
SimpleXMLElement::countCounts the children of an element Description
public int SimpleXMLElement::count()
This method counts the number of children of an element. ParametersThis function has no parameters. Return ValuesReturns the number of elements of an element. Examples
Example #1 Counting the number of children
The above example will output: Person 1 has got 3 children. Person 2 has got 5 children. See Also
|