From 1d410ffe5d0a83520500e29192d7842424c4d823 Mon Sep 17 00:00:00 2001 From: Sherif Ramadan Date: Thu, 27 Sep 2012 02:02:20 +0000 Subject: [PATCH] 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 --- reference/pdo/pdostatement/execute.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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