Commit ecc6b2d9 authored by Penny Leach's avatar Penny Leach
Browse files

added phpdoc for db_array_to_ph

parent 76d73d26
......@@ -1174,6 +1174,13 @@ function is_mysql() {
return (strpos(get_config('dbtype'), 'mysql') === 0);
}
/**
* function to convert an array to
* an array of placeholders (?)
* with the right number of values
*
* @param array $array input array
*/
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