original_string: public static function EndsWith($haystack, $needle)
      {
          $length = static::Length($needle);
  
          return $length === 0 || (substr($haystack, -$length) === $needle);
      }
code: public static function EndsWith($haystack, $needle)
      {
          $length = static::Length($needle);
  
          return $length === 0 || (substr($haystack, -$length) === $needle);
      }
code_tokens: public static function EndsWith ( $ haystack , $ needle ) { $ length = static :: Length ( $ needle ) ; return $ length === 0 || ( substr ( $ haystack , - $ length ) === $ needle ) ; }
docstring: Determine if the given string ends with the given substring.
  
  @param string $haystack string
  @param string $needle   substring
  
  @return bool
docstring_tokens: Determine if the given string ends with the given substring .