original_string: private static function lti_extract_parameters($parameters) {
  
          $params = array();
          foreach ($parameters as $parameter) {
              if (isset($parameter->variable)) {
                  $value = '$' . $parameter->variable;
              } else {
                  $value = $parameter->fixed;
                  if (strlen($value) > 0) {
                      $first = substr($value, 0, 1);
                      if (($first == '$') || ($first == '\\')) {
                          $value = '\\' . $value;
                      }
                  }
              }
              $params[] = "{$parameter->name}={$value}";
          }
  
          return implode("\n", $params);
  
      }
code: private static function lti_extract_parameters($parameters) {
  
          $params = array();
          foreach ($parameters as $parameter) {
              if (isset($parameter->variable)) {
                  $value = '$' . $parameter->variable;
              } else {
                  $value = $parameter->fixed;
                  if (strlen($value) > 0) {
                      $first = substr($value, 0, 1);
                      if (($first == '$') || ($first == '\\')) {
                          $value = '\\' . $value;
                      }
                  }
              }
              $params[] = "{$parameter->name}={$value}";
          }
  
          return implode("\n", $params);
  
      }
code_tokens: private static function lti_extract_parameters ( $ parameters ) { $ params = array ( ) ; foreach ( $ parameters as $ parameter ) { if ( isset ( $ parameter -> variable ) ) { $ value = '$' . $ parameter -> variable ; } else { $ value = $ parameter -> fixed ; if ( strlen ( $ value ) > 0 ) { $ first = substr ( $ value , 0 , 1 ) ; if ( ( $ first == '$' ) || ( $ first == '\\' ) ) { $ value = '\\' . $ value ; } } } $ params [ ] = "{$parameter->name}={$value}" ; } return implode ( "\n" , $ params ) ; }
docstring: Extracts the message parameters from the tool proxy entry
  
  @param array $parameters     Parameter section of a message
  
  @return String  containing parameters
docstring_tokens: Extracts the message parameters from the tool proxy entry