PHP Insert characters at multiple points of string
<p>I have a string sent from database, I want to turn it into a date/time string. The source string is:</p>

<pre><code>20110524153631
</code></pre>

<p>I want it to be:</p>

<pre><code>2011-05-24 15:36:31
</code></pre>

<p>I know I can use multiple inserts but I want to know whether there's a more easy way to do this. How can I achive this?</p>
