PHPHtmlParser\Dom\InnerNode::isChild PHP Method

isChild() public method

Checks if the given node id is a child of the current node.
public isChild ( integer $id ) : boolean
$id integer
return boolean
    public function isChild($id)
    {
        foreach ($this->children as $childId => $child) {
            if ($id == $childId) {
                return true;
            }
        }
        return false;
    }