title: PHP: How to replace text after a specific word?
body: <p>I have a string that will be executed as a query but it have <code>between</code> functions in this way:</p>
  
  <pre><code>BETWEEN '2019-01-01 AND 2019-01-31'
  </code></pre>
  
  <p>But I need to replace it with this so PostgreSQL can understand it:</p>
  
  <pre><code>BETWEEN '2019-01-01' AND '2019-01-31'
  </code></pre>