Twitter json + php
<p>I am pulling the twitter json feed and parsing it with php. 
One of the values in the array is <code>[created_at] =&gt; Wed Jun 22 06:19:31 +0000 2011</code> . 
However I only want the "<code>Wed Jun 22</code>".</p>

<p>I am currently using <code>$data-&gt;created_at = substr($data-&gt;created_at, 0, 10);</code> </p>

<p>but for example if a month/day has 4 characters it will mess it up so I need a better way to do this.</p>
