Relative Content

Tag Archive for phpdomdocument

How to count children in DOMNodeList? PHP

I am trying to count children of a DOMNode. It appears to give wrong results when I use count vs traversing or the ->length property. As if text nodes are not counted.