|
SimpleXMLElement::countCounts the children of an element Beschreibung
public int SimpleXMLElement::count
( void
)
This method counts the number of children of an element. RückgabewerteReturns the number of elements of an element. Beispiele
Beispiel #1 Counting the number of children
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: Person 1 has got 3 children. Person 2 has got 5 children. Siehe auch
|