original_string: 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--;
          }
      }
code: 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--;
          }
      }
code_tokens: 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 -- ; } }
docstring: 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.
docstring_tokens: Is called when tags are closed .