public function childNodes($idx = -1)
    {
        $nodeList = $this->getIterator();

        if ($idx === -1) {
            return $nodeList;
        }

        if (isset($nodeList[$idx])) {
            return $nodeList[$idx];
        }

        return null;
    }
public function childNodes($idx = -1)
    {
        $nodeList = $this->getIterator();

        if ($idx === -1) {
            return $nodeList;
        }

        if (isset($nodeList[$idx])) {
            return $nodeList[$idx];
        }

        return null;
    }
public function childNodes ( $ idx = - 1 ) { $ nodeList = $ this -> getIterator ( ) ; if ( $ idx === - 1 ) { return $ nodeList ; } if ( isset ( $ nodeList [ $ idx ] ) ) { return $ nodeList [ $ idx ] ; } return null ; }
Returns children of node

@param int $idx

@return NodeList|Element|null
Returns children of node