src/Shared/String/ConversionTrait.php
public static function hasSuffix(
        /*# string */ $string,
        /*# string */ $suffix
    )/*# : bool */ {
        $len = strlen($suffix);
        if ($len && substr($string, - $len) === $suffix) {
            return true;
        }
        return false;
    }
public static function hasSuffix(
        /*# string */ $string,
        /*# string */ $suffix
    )/*# : bool */ {
        $len = strlen($suffix);
        if ($len && substr($string, - $len) === $suffix) {
            return true;
        }
        return false;
    }
Has string contain a suffix ?

@param  string $string
@param  string $suffix
@return bool
@access public
@static