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

FluentDOM\Nodes::$length

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