original_string: public function sql_like_escape($text, $escapechar = '\\') {
          $text = str_replace('_', $escapechar.'_', $text);
          $text = str_replace('%', $escapechar.'%', $text);
          return $text;
      }
code: public function sql_like_escape($text, $escapechar = '\\') {
          $text = str_replace('_', $escapechar.'_', $text);
          $text = str_replace('%', $escapechar.'%', $text);
          return $text;
      }
code_tokens: public function sql_like_escape ( $ text , $ escapechar = '\\' ) { $ text = str_replace ( '_' , $ escapechar . '_' , $ text ) ; $ text = str_replace ( '%' , $ escapechar . '%' , $ text ) ; return $ text ; }
docstring: Escape sql LIKE special characters like '_' or '%'.
  @param string $text The string containing characters needing escaping.
  @param string $escapechar The desired escape character, defaults to '\\'.
  @return string The escaped sql LIKE string.
docstring_tokens: Escape sql LIKE special characters like _ or % .