diff --git a/reference/pdo/pdostatement/execute.xml b/reference/pdo/pdostatement/execute.xml index 515ce2ee3b..56aa401a61 100644 --- a/reference/pdo/pdostatement/execute.xml +++ b/reference/pdo/pdostatement/execute.xml @@ -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