note 97534 added to pdostatement.execute
| From: | gx at osu1 dot php dot net | Date: | Sat, 24 Apr 2010 19:25:03 +0000 |
| Subject: | note 97534 added to pdostatement.execute | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168593@lists.php.net to get a copy of this message | ||
About my previous message: actually the correct function should be:
<?php
function customExecute(PDOStatement &$sth, $params = NULL) {
return $sth->execute($params);
}
?>
PDOStatement::execute() doesn't require $input_parameters to be an array.
(In fact I just realized that, out of "Array Functions", not many functions require actual
array(s): preg_grep(), and... has anyone got a list? :p)
----
Server IP: 89.31.146.176
Probable Submitter: 87.91.64.42
----
Manual Page -- http://www.php.net/manual/en/pdostatement.execute.php
Edit -- https://master.php.net/note/edit/97534
Del: integrated -- https://master.php.net/note/delete/97534/integrated
Del: useless -- https://master.php.net/note/delete/97534/useless
Del: bad code -- https://master.php.net/note/delete/97534/bad+code
Del: spam -- https://master.php.net/note/delete/97534/spam
Del: non-english -- https://master.php.net/note/delete/97534/non-english
Del: in docs -- https://master.php.net/note/delete/97534/in+docs
Del: other reasons-- https://master.php.net/note/delete/97534
Reject -- https://master.php.net/note/reject/97534
Search -- https://master.php.net/manage/user-notes.php