title: Save sql data to localstorage in php
body: <p>When page load, I have a function return customer data</p>
  
  <pre><code>&lt;?php
  
  function customerdata()
  {
  $sql="select * from Customer";
  return exec_to_arry($sql);
  } 
  
  ?&gt;
  </code></pre>
  
  <p>How to put customerdata to localstorage when page load or rerfresh ?</p>