How to Convert Seconds into Days, Hours and Minutes

In this quick tutorial i will let you know how to convert second into date format, this is very common problem in web development to convert date into a specific date format.
To achieve above results we need to convert date into timestamp then we converted that timestamp into desire date format with help of date(timestamp, ‘date format’) function.
But here we are converting seconds into a user specific date format like we want to show as below format date.
“14 days, 6 hours, 56 minutes, 7 seconds”

You can also check other recommended Date PHP tutorials,

PHP Function to Convert seconds to hours, minutes and seconds