public static function hasSuffix(string $value, string $suffix): bool
    {
        return 0 === strcasecmp($suffix, substr($value, -\strlen($suffix)));
    }
public static function hasSuffix(string $value, string $suffix): bool
    {
        return 0 === strcasecmp($suffix, substr($value, -\strlen($suffix)));
    }
public static function hasSuffix ( string $ value , string $ suffix ) : bool { return 0 === strcasecmp ( $ suffix , substr ( $ value , - \ strlen ( $ suffix ) ) ) ; }
Looks for suffixes in strings in a case-insensitive way.
Looks for suffixes in strings in a case - insensitive way .