public function containsAll($contains, int $offset = 0): bool
    {
        if (empty($contains)) {
            return false;
        }

        $parameters = $this->parameters($contains);


        if ($offset > $this->length()) {
            return false;
        }

        foreach ($parameters as $needle) {
            if (strpos($this->string, $needle->value(), $offset) === false) {
                return false;
            }
        }

        return true;
    }
public function containsAll($contains, int $offset = 0): bool
    {
        if (empty($contains)) {
            return false;
        }

        $parameters = $this->parameters($contains);


        if ($offset > $this->length()) {
            return false;
        }

        foreach ($parameters as $needle) {
            if (strpos($this->string, $needle->value(), $offset) === false) {
                return false;
            }
        }

        return true;
    }
public function containsAll ( $ contains , int $ offset = 0 ) : bool { if ( empty ( $ contains ) ) { return false ; } $ parameters = $ this -> parameters ( $ contains ) ; if ( $ offset > $ this -> length ( ) ) { return false ; } foreach ( $ parameters as $ needle ) { if ( strpos ( $ this -> string , $ needle -> value ( ) , $ offset ) === false ) { return false ; } } return true ; }
Check if a string contains all of the given values

@param string|array $contains Values to look for in the string
@param int $offset [optional] Search will start this number of characters from the beginning of the string.

@return bool
Check if a string contains all of the given values