ConFoo Montreal 2026: Call for Papers

Voting

: three minus three?
(Example: nine)

The Note You're Voting On

streaky at mybrokenlogic dot com
17 years ago
What the bindValue() docs fail to explain without reading them _very_ carefully is that bindParam() is passed to PDO byref - whereas bindValue() isn't.

Thus with bindValue() you can do something like $stmt->bindValue(":something", "bind this"); whereas with bindParam() it will fail because you can't pass a string by reference, for example.

<< Back to user notes page

To Top