Bug #74415 [Opn]: This is incorrect $placeholder = substr(str_repeat('?,',count($keys),0,-1));

From: Date: Tue, 11 Apr 2017 13:06:51 +0000
Subject: Bug #74415 [Opn]: 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-14605@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 User updated by: edcesar at edcesar dot com Reported by: edcesar at edcesar dot com Summary: This is incorrect $placeholder = substr(str_repeat('?,',count($keys),0,-1)); Status: Open Type: Bug Package: Documentation problem Operating System: all PHP Version: Irrelevant Block user comment: N Private report: N New Comment: http://php.net/manual/pt_BR/pdostatement.execute.php Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#14605) next »