Determine if the string ends with another string.
Twine\Str::endsWith( string $string ) : bool
| $string | The string to compare against |
$string = new Twine\Str('john pinkerton');
$string->endsWith('pinkerton'); // Returns true
$string->endsWith('john'); // Returns false