src/Str.php
public function contains(string $value): bool
    {
        try {
            $this->position($value);

            return true;
        } catch (SubstringException $e) {
            return false;
        }
    }
public function contains(string $value): bool
    {
        try {
            $this->position($value);

            return true;
        } catch (SubstringException $e) {
            return false;
        }
    }
public function contains ( string $ value ) : bool { try { $ this -> position ( $ value ) ; return true ; } catch ( SubstringException $ e ) { return false ; } }
Check if the given string is present in the current one

@param string $value

@return bool
Check if the given string is present in the current one