src/Str.php
public function endsWith(string $value): bool
    {
        if ($value === '') {
            return true;
        }

        return (string) $this->takeEnd(self::of($value, $this->encoding)->length()) === $value;
    }
public function endsWith(string $value): bool
    {
        if ($value === '') {
            return true;
        }

        return (string) $this->takeEnd(self::of($value, $this->encoding)->length()) === $value;
    }
public function endsWith ( string $ value ) : bool { if ( $ value === '' ) { return true ; } return ( string ) $ this -> takeEnd ( self :: of ( $ value , $ this -> encoding ) -> length ( ) ) === $ value ; }
Check if the current string ends with the given string

@param string $value

@return bool
Check if the current string ends with the given string