code: public static function hasSuffix(
          /*# string */ $string,
          /*# string */ $suffix
      )/*# : bool */ {
          $len = strlen($suffix);
          if ($len && substr($string, - $len) === $suffix) {
              return true;
          }
          return false;
      }
docs: Has string contain a suffix ?
  
  @param  string $string
  @param  string $suffix
  @return bool
  @access public
  @static