You can pass in an array and PDOStatement::execute can take an array of parameters. public function query($sql, $params) { $stmt = $this->pdo->prepare ...
確定! 回上一頁