public function bind($bindings, $type = [])
	{
		$idx = 1;

		$this->bindings = $bindings;

		foreach ($bindings as $binding)
		{
			// We use bindValue here because that allows us to pass in plain old strings
			$this->statement->bindValue(
				$idx,
				$binding,
				isset($type[$idx]) ? $this->translateType($type[$idx]) : $this->inferType($binding)
			);

			$idx++;
		}

		return $this;
	}
public function bind($bindings, $type = [])
	{
		$idx = 1;

		$this->bindings = $bindings;

		foreach ($bindings as $binding)
		{
			// We use bindValue here because that allows us to pass in plain old strings
			$this->statement->bindValue(
				$idx,
				$binding,
				isset($type[$idx]) ? $this->translateType($type[$idx]) : $this->inferType($binding)
			);

			$idx++;
		}

		return $this;
	}
public function bind ( $ bindings , $ type = [ ] ) { $ idx = 1 ; $ this -> bindings = $ bindings ; foreach ( $ bindings as $ binding ) { // We use bindValue here because that allows us to pass in plain old strings $ this -> statement -> bindValue ( $ idx , $ binding , isset ( $ type [ $ idx ] ) ? $ this -> translateType ( $ type [ $ idx ] ) : $ this -> inferType ( $ binding ) ) ; $ idx ++ ; } return $ this ; }
Binds the given bindings to the prepared statement

If you're going to pass in types, they must be keyed
the same as the bindings.

@param   array  $bindings  The param bindings
@param   array  $type      The param types
@return  $this
@since   2.0.0
Binds the given bindings to the prepared statement