title: How to replace one single quote by two single quotes in a string with PHP?
body: <p>I want to replace this using str_replace of PHP</p>
  
  <blockquote>
    <p>'test</p>
  </blockquote>
  
  <p>by</p>
  
  <blockquote>
    <p>test</p>
  </blockquote>
  
  <p>EDIT</p>
  
  <p>Done by this :</p>
  
  <pre><code>$test = str_replace("'", "''", "'test");
  </code></pre>