title: PHP Activerecord; pass in associative array as conditions
body: <p>I know in PHP Activerecord you can pass in condition arrays as:</p>
  
  <pre><code>// Data Structure
  ['a=? &amp;&amp; b=?', 'foo', 'bar']
  
  // Outputs:
  // SELECT * FROM `table` WHERE `a`="foo" &amp;&amp; `b`="bar"
  </code></pre>
  
  <p>But I have an associative array generated in another part of the program I'd like to pass in as direct conditions. The columns can vary so I can't write the query string in advance, so can you pass in an associative array of key/value pairs to be used as conditions? I can't recall if I had issues with this. I don't see any documentation stating standard associative arrays are an allowable structure.</p>
  
  <pre><code>// Data Structure
  ['a' =&gt;'foo', 'b' =&gt; 'bar']
  
  // Outputs:
  // SELECT * FROM `table` WHERE `a`="foo" &amp;&amp; `b`="bar"
  </code></pre>
  
  <p>And lastly, can conditions be mixed between the two methods? I also have conditions which I want to pass in along with the key/value pairs.</p>
  
  <pre><code>// Data Structure
  ['(a=? || b=?)', 'foo', 'bar', 'c' =&gt; 'baz']
  
  // Outputs:
  // SELECT * FROM `table` WHERE (`a`="foo" || `b`="bar") &amp;&amp; `c`="baz"
  </code></pre>
  
  <p>Is this possible in PHP Activerecord, and also - is it a safe/reliable operation?</p>