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