PHP: number of days between two dates
It’s Saturday, what am I doing in front of the computer? I should be out and enjoy life. ^o^ A colleague asked to customize a theme for his blog using WordPress. Because I didn’t have any good plan this Saturday, learning PHP sound like a logical and useful choice. Well, I bribed myself with a bottle of Tui. Then, I found an interesting PHP related post by Chorn Sokun titled PHP date diff. The author was trying to calculate the number days between two give dates. At the end of the post, he asked “What would you do instead?” ...