How we can add two date intervals in PHP
PHP has no operator overloading* so + with objects makes PHP trying it to convert them to string first, but DateInterval does not support that: interval 1: 03:05 interval 2: 05:00 Total interval : 08:05 Instead you need to create a new DateTime object, then use the add function to add the intervals and finally … Read more