Vendor/PHPHtmlParser/paquettg/php-html-parser/src/PHPHtmlParser/Dom/InnerNode.php
public function getChildren()
    {
        $nodes = [];
        try {
            $child = $this->firstChild();
            do {
                $nodes[] = $child;
                $child   = $this->nextChild($child->id());
            } while ( ! is_null($child));
        } catch (ChildNotFoundException $e) {
            // we are done looking for children
        }

        return $nodes;
    }
public function getChildren()
    {
        $nodes = [];
        try {
            $child = $this->firstChild();
            do {
                $nodes[] = $child;
                $child   = $this->nextChild($child->id());
            } while ( ! is_null($child));
        } catch (ChildNotFoundException $e) {
            // we are done looking for children
        }

        return $nodes;
    }
public function getChildren ( ) { $ nodes = [ ] ; try { $ child = $ this -> firstChild ( ) ; do { $ nodes [ ] = $ child ; $ child = $ this -> nextChild ( $ child -> id ( ) ) ; } while ( ! is_null ( $ child ) ) ; } catch ( ChildNotFoundException $ e ) { // we are done looking for children } return $ nodes ; }
Returns a new array of child nodes

@return array
Returns a new array of child nodes