Fixed wrong variable name used in the example code.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327812 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sherif Ramadan 2012-09-27 02:02:20 +00:00
parent 4ff7ef044b
commit 1d410ffe5d

View file

@ -163,7 +163,7 @@ $sth->execute();
/* Execute a prepared statement using an array of values for an IN clause */
$params = array(1, 21, 63, 171);
/* Create a string for the parameter placeholders filled to the number of params */
$place_holders = implode(',', array_fill(0, count($values), '?'));
$place_holders = implode(',', array_fill(0, count($params), '?'));
/*
This prepares the statement with enough unnamed placeholders for every value