private function endelement($parser, $name) {
        $current = &$this->current;
        $level = &$this->level;
        if (!empty($name)) {
            if (empty($current[$level])) {
                $current[$level] = '';
            } else if (array_key_exists(0, $current[$level])) {
                if (count($current[$level]) == 1) {
                    $current[$level] = $current[$level][0]; // We remove array index if we only have a single entry.
                }
            }

            $level--;
        }
    }
private function endelement($parser, $name) {
        $current = &$this->current;
        $level = &$this->level;
        if (!empty($name)) {
            if (empty($current[$level])) {
                $current[$level] = '';
            } else if (array_key_exists(0, $current[$level])) {
                if (count($current[$level]) == 1) {
                    $current[$level] = $current[$level][0]; // We remove array index if we only have a single entry.
                }
            }

            $level--;
        }
    }
private function endelement ( $ parser , $ name ) { $ current = & $ this -> current ; $ level = & $ this -> level ; if ( ! empty ( $ name ) ) { if ( empty ( $ current [ $ level ] ) ) { $ current [ $ level ] = '' ; } else if ( array_key_exists ( 0 , $ current [ $ level ] ) ) { if ( count ( $ current [ $ level ] ) == 1 ) { $ current [ $ level ] = $ current [ $ level ] [ 0 ] ; // We remove array index if we only have a single entry. } } $ level -- ; } }
Is called when tags are closed.

Note: Used by xml element handler as callback.

@author Kilian Singer
@param resource $parser The XML parser resource.
@param string $name The XML source to parse.
Is called when tags are closed .