code: public function splice($offset, $length, $replacement = null)
      {
          return new NodeList(array_splice($this->nodes, $offset, $length, $replacement));
      }
docs: @param int   $offset
  @param int   $length
  @param mixed $replacement
  
  @return NodeList