src/core/DB.php
public function subst($query)
    {
        foreach ($this->values as $key => $value)
        {
            $query = preg_replace("/$key(\s|,|$)/", "$value$1", $query);
        }

        return $query;
    }
public function subst($query)
    {
        foreach ($this->values as $key => $value)
        {
            $query = preg_replace("/$key(\s|,|$)/", "$value$1", $query);
        }

        return $query;
    }
public function subst ( $ query ) { foreach ( $ this -> values as $ key => $ value ) { $ query = preg_replace ( "/$key(\s|,|$)/" , "$value$1" , $ query ) ; } return $ query ; }
Substitute values in query

@param string $query
@return string
Substitute values in query