public static function endsWith($string, $needle, $strict = true) {
        $end = static::extract($string, -mb_strlen($needle));

        if ($strict) {
            return ($end === $needle);
        }

        return (mb_strtolower($end) === mb_strtolower($needle));
    }
public static function endsWith($string, $needle, $strict = true) {
        $end = static::extract($string, -mb_strlen($needle));

        if ($strict) {
            return ($end === $needle);
        }

        return (mb_strtolower($end) === mb_strtolower($needle));
    }
public static function endsWith ( $ string , $ needle , $ strict = true ) { $ end = static :: extract ( $ string , - mb_strlen ( $ needle ) ) ; if ( $ strict ) { return ( $ end === $ needle ) ; } return ( mb_strtolower ( $ end ) === mb_strtolower ( $ needle ) ) ; }
Checks to see if the string ends with a specific value.

@param string $string
@param string $needle
@param bool $strict
@return bool
Checks to see if the string ends with a specific value .