src/Str.php
public static function endsWith(string $string, string $search): bool
    {
        return (substr($string, -strlen($search)) === $search);
    }
public static function endsWith(string $string, string $search): bool
    {
        return (substr($string, -strlen($search)) === $search);
    }
public static function endsWith ( string $ string , string $ search ) : bool { return ( substr ( $ string , - strlen ( $ search ) ) === $ search ) ; }
Check if a string ends with another substring.

@param string $string
@param string $search
@return bool
Check if a string ends with another substring .