Need help displaying time frame (months, weeks, days) between two dates in PHP

I’m looking to develop PHP code for the following application, similar to a countdown timer.
I want to compute the difference between the current date and the date of a future event (happens to be 1/7/2014).
Easy to do. But I want to display the difference or time between the current date and this future event as follows
---- Event is x months and y weeks and z days from today
I believe the best approach is to start with the datediff function, but it’s the display output portion that gets tricky
I would appreciate some help or direction. Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service