I have an Array of a week with a timestamps like this 2013-01-07 06:55:34 what I would like to do is split the array up to 7 different arrays by the day. Is that possible in PHP?
How I am creating the array is like this
$sqlCount="SELECT time_stamp FROM `download_log` WHERE WEEK(`time_stamp`) = WEEK(CURRENT_TIMESTAMP) AND YEAR(`time_stamp`) = YEAR(CURRENT_TIMESTAMP)";
$queryCount = mysql_query($sqlCount) or die(mysql_error());
$dates = array();
while(($row = mysql_fetch_assoc($queryCount))) {
$dates[] = $row['time_stamp'];
}
And what I would like is 7 different arrays like $monday $tuesday etc. and each of those arrays have the days from the $dates array