title: How to bind array parameters in Yii framework?
body: <p>I have below code:</p>
  
  <pre><code>$inputs = "1,2,3,4,5";
  $sql = "SELECT * FROM obj WHERE id IN(:input)";
  
  $commond = Yii::app()-&gt;db-&gt;createCommand($sql);
  $commond-&gt;bindValue(":input", $inputs , PDO::PARAM_STR);
  </code></pre>
  
  <p>But the query result is incorrect. How to bind params for such <code>IN</code> condition? </p>