Binding a parameter by reference does not support DBAL mapping types.
public bindParam ( string $name, mixed &$var, integer $type = PDO::PARAM_STR, integer | null $length = null ) : boolean | ||
$name | string | The name or position of the parameter. |
$var | mixed | The reference to the variable to bind. |
$type | integer | The PDO binding type. |
$length | integer | null | Must be specified when using an OUT bind so that PHP allocates enough memory to hold the returned value. |
리턴 | boolean | TRUE on success, FALSE on failure. |