What is the difference between bindParam and bindValue?

后端 未结 7 1283
一向
一向 2020-11-22 00:23

What is the difference between PDOStatement::bindParam() and PDOStatement::bindValue()?

7条回答
  •  旧时难觅i
    2020-11-22 01:16

    The simplest way to put this into perspective for memorization by behavior (in terms of PHP):

    • bindParam: reference
    • bindValue: variable

提交回复
热议问题