When working with dates, time and calendars it becomes a pretty common requirement to compare dates-Testing whether a date occurs after or before one date, whether an event occurs between two specific times, etc. The easiest way to work with dates in PHP is with the DateTime object.
Obviously for us (as humans) it is pretty easy to see that my party is not during my shift. On the other hand for the computer to see this is a whole other issue.
I’ve been doing some work on the PHP guide and have run into a very common theme among PHP instruction books. Most of them do not delve too deep into the language. Most are for beginners. This has helped me resolve to make the PHP Guide targeted toward a broad audience–from beginners to experts.
I’ve started work on a guide to PHP. Mostly to give myself a better understanding of the language. I’m planning on posting it on here as I do it.