I have a Time Stamp
Time();
from when a user visits my site, I want to group these into hours and days..... how can I do this?????
For Example one result will make a table of how many visits I have for each day then another will work out how many I have had for each hour in the day and another each hour of any given day (so every day's hits during the hour of 3pm....
Ideas please :-)
You could always do:
date('H', time()); // Get the hour date('N', time()); // Get the day, 1=Monday, 7=Sunday
Or even more simply:
list($day, $hour) = explode(':', date('N:H'));