Commit 76d73d26 authored by Penny Leach's avatar Penny Leach
Browse files

added helper function to generate placeholder array with right number

of ? from another array
parent 2998ab57
......@@ -1174,4 +1174,11 @@ function is_mysql() {
return (strpos(get_config('dbtype'), 'mysql') === 0);
}
function db_array_to_ph($array) {
$repl_fun = create_function('$n', "return '?';");
return array_map($repl_fun, $array);
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment