title: php array replace
body: <p>I have 2 output from a php function as below </p>
  
  <p>First output gives me some thing like this</p>
  
  <pre><code>INSERT INTO "table1" ('column1', 'column2', 'column3') VALUES (?,?,?)
  INSERT INTO "table2" ('column1', 'column2', 'column3','column4','column5') VALUES (?,?,?,?,?)
  </code></pre>
  
  <p>Other output gives</p>
  
  <pre><code>Array = (
  1 =&gt; 'value1',
  2 =&gt; 'value2',
  3 =&gt; 'value3',
  )
  
  Array = (
  1 =&gt; 'value1',
  2 =&gt; 'value2',
  3 =&gt; 'value3',
  4 =&gt; 'value4',
  5 =&gt; 'value5',
  )
  </code></pre>
  
  <p>and now I want to do the following..
  How can I replace  the "?" in the first INSERT QUERY  with values value1, value2 and value3 and same way for the second query the values in the second array.</p>
  
  <p>regards</p>