Determine if the string contains another string.

Twine\Str::contains( string $string ) : bool

Parameters

$string The string to compare against

Examples

$string = new Twine\Str('john pinkerton');

        $string->contains('pink'); // Returns true
        $string->contains('purple'); // Returns false