I have this code :
$timestamp_bad = strtotime($statuses[$i]['created_at']);
$timestamp = strptime(strftime("%Y-%m-%d %T", $timestamp_bad), "%Y-%m-%d %T");
echo $timestamp;
I want to change a date ($statuses[$i]['created_at']) which is for example "Sat Dec 04 17:43:38 +0000 2010"
into for example 2010-12-05 10:00:26
, but if I run the code I pasted you, in returns Array ( )
How can I change the format of that date?