src/Tomahawk/Common/Str.php
public static function endsWith($string, $search)
    {
        if (!is_array($search)) {
            $search = array($search);
        }

        foreach ($search as $item) {
            if ((string) $item === substr($string, -strlen($item))) {
                return true;
            }
        }

        return false;
    }
public static function endsWith($string, $search)
    {
        if (!is_array($search)) {
            $search = array($search);
        }

        foreach ($search as $item) {
            if ((string) $item === substr($string, -strlen($item))) {
                return true;
            }
        }

        return false;
    }
Check if string ends with passed search string(s)

@param $string
@param $search
@return bool