public function after()
    {
        $this->importNodes(\func_get_args(), function ($node, $imported_node) {
            if ($node->nextSibling) {
                $node->parentNode->insertBefore($imported_node, $node->nextSibling);
            } else { // node is last, so there is no next sibling to insert before
                $node->parentNode->appendChild($imported_node);
            }
        });

        return $this;
    }
public function after()
    {
        $this->importNodes(\func_get_args(), function ($node, $imported_node) {
            if ($node->nextSibling) {
                $node->parentNode->insertBefore($imported_node, $node->nextSibling);
            } else { // node is last, so there is no next sibling to insert before
                $node->parentNode->appendChild($imported_node);
            }
        });

        return $this;
    }
public function after ( ) { $ this -> importNodes ( \ func_get_args ( ) , function ( $ node , $ imported_node ) { if ( $ node -> nextSibling ) { $ node -> parentNode -> insertBefore ( $ imported_node , $ node -> nextSibling ) ; } else { // node is last, so there is no next sibling to insert before $ node -> parentNode -> appendChild ( $ imported_node ) ; } } ) ; return $ this ; }
Insert content after each element in the set of matched elements.

@param string|self $content,...

@return $this
Insert content after each element in the set of matched elements .