public function end() {

        // remove this ordered number tracking for this nesting
        if (array_key_exists($this->nesting, $this->orderedNumbers)) {

            // remove the item off the array
            unset ($this->orderedNumbers[$this->nesting]);
        }

        // close the start
        parent::end();
        
        // chaining
        return $this;
    }
public function end() {

        // remove this ordered number tracking for this nesting
        if (array_key_exists($this->nesting, $this->orderedNumbers)) {

            // remove the item off the array
            unset ($this->orderedNumbers[$this->nesting]);
        }

        // close the start
        parent::end();
        
        // chaining
        return $this;
    }
public function end ( ) { // remove this ordered number tracking for this nesting if ( array_key_exists ( $ this -> nesting , $ this -> orderedNumbers ) ) { // remove the item off the array unset ( $ this -> orderedNumbers [ $ this -> nesting ] ) ; } // close the start parent :: end ( ) ; // chaining return $ this ; }
End the current ordered or unordered list
End the current ordered or unordered list