matchNamedBinds example

if (is_int(array_key_first($binds))) {
            $bindCount = count($binds);
            $ml        = strlen($this->bindMarker);

            $this->finalQueryString = $this->matchSimpleBinds($sql$binds$bindCount$ml);
        } else {
            // Reverse the binds so that duplicate named binds             // will be processed prior to the original binds.             $binds = array_reverse($binds);

            $this->finalQueryString = $this->matchNamedBinds($sql$binds);
        }
    }

    /** * Match bindings */
    protected function matchNamedBinds(string $sql, array $binds): string
    {
        $replacers = [];

        foreach ($binds as $placeholder => $value) {
            
Home | Imprint | This part of the site doesn't use cookies.