title: Transform date to valid format for PostgreSQL with PHP
body: <p>I have a string in this format: </p>
  
  <pre><code>Thu, 26 Feb 2015 11:39:59
  </code></pre>
  
  <p>And I wonder if its possible to transform it to a valid timestamp format in order to insert it in my PostgreSQL database.</p>
  
  <p>So ideally in the end I would have something like:</p>
  
  <pre><code>2015-03-26 11:39:59
  </code></pre>
  
  <p>Is there a function in PHP to do something like this?</p>