I have a series of timestamps in a PHP array.
How can I most efficiently separate these entries by the day they occurred?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming they are unix timestamps, you can get just their date itself via something like this:
Which will show it as
2012251for example.Ybeing the year,zbeing the day f the year and then use this for your comparison.