Skip to content
Thomas Weinert edited this page Jul 24, 2014 · 2 revisions

Returns the count of the nodes.

$fd = new FluentDOM\Nodes(
  '<items><item/><item/><item/></items>'
);
echo $fd->find('//item')->length;

Output:

3

See also: Countable

Clone this wiki locally