Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
015bef3e
Commit
015bef3e
authored
Nov 01, 2006
by
Penny Leach
Browse files
simplified the array_to_ph function
parent
ecc6b2d9
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/dml.php
View file @
015bef3e
...
...
@@ -1182,8 +1182,7 @@ function is_mysql() {
* @param array $array input array
*/
function
db_array_to_ph
(
$array
)
{
$repl_fun
=
create_function
(
'$n'
,
"return '?';"
);
return
array_map
(
$repl_fun
,
$array
);
return
array_pad
(
array
(),
count
(
$array
),
'?'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment