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