title: PostgreSQL: pass ARRAY[] to pg_query_params
body: <p>I need to do this query:  </p>
  
  <pre><code>SELECT * FROM property_select(ARRAY[8,9,10,11,12,13,14,15,16,17,19,20,26,28])  
  </code></pre>
  
  <p>using PHP function <code>pg_query_params($prepared, $params)</code>.</p>
  
  <p>Prepared query is:</p>
  
  <pre><code>SELECT * FROM property_select($1);
  </code></pre>
  
  <p>Params are: <code>["ARRAY[8,9,10,11,12,13,14,15,16,17,19,20,26,28]"]</code>
  How can I pass the params to <code>pg_query_params()</code> as array?</p>
  
  <p>It's not possible to use <code>'{8,9,10,11,12,13,14,15,16,17,19,20,26,28}'</code> postgres arrays (because it may contain strings and strings inside this array may contain , and ").</p>