PDOStatement::bindParam的定义:
bool PDOStatement::bindParam ( mixed $parameter , mixed &$variable [, int $data_type = PDO::PARAM_STR [, int $length [, mixed $driver_options ]]] )
$variable为引用传入,所以如果当你使用如下的代时:
foreach ($param as $key => $value) {