protected function replaceBindings($sql, array $bindings)
    {
        $generalRegex = $this->getRegex();

        foreach ($this->formatBindings($bindings) as $key => $binding) {
            $regex = is_numeric($key) ? $generalRegex : $this->getNamedParameterRegex($key);
            $sql = preg_replace($regex, $this->value($binding), $sql, 1);
        }

        return $sql;
    }
protected function replaceBindings($sql, array $bindings)
    {
        $generalRegex = $this->getRegex();

        foreach ($this->formatBindings($bindings) as $key => $binding) {
            $regex = is_numeric($key) ? $generalRegex : $this->getNamedParameterRegex($key);
            $sql = preg_replace($regex, $this->value($binding), $sql, 1);
        }

        return $sql;
    }
protected function replaceBindings ( $ sql , array $ bindings ) { $ generalRegex = $ this -> getRegex ( ) ; foreach ( $ this -> formatBindings ( $ bindings ) as $ key => $ binding ) { $ regex = is_numeric ( $ key ) ? $ generalRegex : $ this -> getNamedParameterRegex ( $ key ) ; $ sql = preg_replace ( $ regex , $ this -> value ( $ binding ) , $ sql , 1 ) ; } return $ sql ; }
Replace bindings.

@param string $sql
@param array $bindings

@return string
Replace bindings .