Doc->Bug #74415 [Opn->Nab]: This is incorrect $placeholder = substr(str_repeat('?,',count($keys),0,-1));
| From: | peehaa@php.net | Date: | Tue, 11 Apr 2017 13:19:22 +0000 |
| Subject: | Doc->Bug #74415 [Opn->Nab]: This is incorrect $placeholder = substr(str_repeat('?,',count($keys),0,-1)); | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14606@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74415&edit=1
ID: 74415
Updated by: peehaa@php.net
Reported by: edcesar at edcesar dot com
Summary: This is incorrect $placeholder =
substr(str_repeat('?,',count($keys),0,-1));
-Status: Open
+Status: Not a bug
-Type: Documentation Problem
+Type: Bug
Package: Documentation problem
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This is not a bug in the official docs, but in the user supplied notes.
I fixed it, but please note that people already commented on the fact that there was a mistake.
Previous Comments:
------------------------------------------------------------------------
[2017-04-11 13:06:49] edcesar at edcesar dot com
http://php.net/manual/pt_BR/pdostatement.execute.php
------------------------------------------------------------------------
[2017-04-11 13:05:22] edcesar at edcesar dot com
Description:
------------
The example of user Rami jamleh is this:
$placeholder = substr(str_repeat('?,',count($keys),0,-1));
The correct would be:
$place_holders = substr(str_repeat('?,',count($keys)),0,-1);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74415&edit=1