Contao\Database\Statement::replaceWildcards PHP Method

replaceWildcards() protected method

Replace the wildcards in the query string
protected replaceWildcards ( array $arrValues )
$arrValues array The values array
    protected function replaceWildcards($arrValues)
    {
        $arrValues = $this->escapeParams($arrValues);
        $this->strQuery = preg_replace('/(?<!%)%([^bcdufosxX%])/', '%%$1', $this->strQuery);
        // Replace wildcards
        if (($this->strQuery = @vsprintf($this->strQuery, $arrValues)) == false) {
            throw new \Exception('Too few arguments to build the query string');
        }
    }