update : 2015.11.03
php.shukuma.com검색:
|
SimpleXMLElement::count(PHP 5 >= 5.3.0) SimpleXMLElement::count — Counts the children of an element 설명
public int SimpleXMLElement::count
( void
)
This method counts the number of children of an element. 반환값Returns the number of elements of an element. 예제
Example #1 Counting the number of children
<?php 위 예제의 출력: Person 1 has got 3 children. Person 2 has got 5 children. |