pQuery\DomNode::getNextSibling PHP Method

getNextSibling() public method

Get node next to current
See also: getSibling()
See also: getPreviousSibling()
public getNextSibling ( boolean $skip_text_comments = true ) : DomNode
$skip_text_comments boolean
return DomNode Null if not found
    function getNextSibling($skip_text_comments = true)
    {
        $offset = 1;
        while (($n = $this->getSibling($offset)) !== null) {
            if ($skip_text_comments && $n->tag[0] === '~') {
                ++$offset;
            } else {
                break;
            }
        }
        return $n;
    }
DomNode