title: how to print out insert query in browser by function in php
body: <p>i want to make a function that have two parameters which are table name and $info(includes column name and its values)</p>
  
  <p>for example</p>
  
  <pre><code>$info=array('em_name'=&gt;'Ali',
           'em_salary'=&gt;'3000',
            'em_city'=&gt;'ISB', 
            'em_country'=&gt;'Pakistan');
  </code></pre>
  
  <p>i want to call function.</p>
  
  <pre><code>insert($info,emp); 
  </code></pre>
  
  <p>that give me the result as follow</p>
  
  <pre><code>insert into emp (emp_name,emp_salary,emp_city,emp_country) value("Ali",'3000','ISB', "Pakistan");
  </code></pre>
  
  <p>any one help me for makeing this function??</p>