I always use mktime, it feels less like guesswork than strtotime.
Mktime(0, 0, 0, date('m', $timestamp)-1, 1, date('Y', $timestamp)) for the first of last month, +1 for next month, you can also set the day of month to 0 to get the last day of the previous month
I always use mktime, it feels less like guesswork than strtotime.
Mktime(0, 0, 0, date('m', $timestamp)-1, 1, date('Y', $timestamp)) for the first of last month, +1 for next month, you can also set the day of month to 0 to get the last day of the previous month
Just recreated this in js: http://d62.net/demos/js/hex_clock.html
way ahead of you: http://d62.net/demos/js/hex_clock.html
that's awful...
A user can just locally edit the DOM and change them all of the [name:rules] to optional and pass whatever data they want.
This is one of the times where ALWAYS VALIDATE USER INPUT is important
just looked at the dupes for this entry and found other redditor attempts:
http://colourclock.codefocus.ca/ and http://pseudony.ms/colorclock.html
i think my code is a bit easier to read