public static function insertMarks($query)
    {
        $pos   = -1;
        $regex = '/(?<!\')\?(?!\')/';
        return preg_replace_callback($regex, function($matches) use (&$pos) { $pos++; return ":pdooci_m$pos"; }, $query);
    }
public static function insertMarks($query)
    {
        $pos   = -1;
        $regex = '/(?<!\')\?(?!\')/';
        return preg_replace_callback($regex, function($matches) use (&$pos) { $pos++; return ":pdooci_m$pos"; }, $query);
    }
public static function insertMarks ( $ query ) { $ pos = - 1 ; $ regex = '/(?<!\')\?(?!\')/' ; return preg_replace_callback ( $ regex , function ( $ matches ) use ( & $ pos ) { $ pos ++ ; return ":pdooci_m$pos" ; } , $ query ) ; }
Convert a query to use bind marks

@param string $query to insert bind marks

@return string query with bind marks
Convert a query to use bind marks