i want to add two date intervals to calculate the total duration in hours and minutes in fact i want to perform addittion as shown below:
$a = new DateTime('14:25');
$b = new DateTime('17:30');
$interval1 = $a->diff($b);
echo "interval 1 : " . $interval1->format("%H:%I");
echo "<br />";
$c = new DateTime('08:00');
$d = new DateTime('13:00');
$interval2 = $c->diff($d);
echo "interval 2 : " . $interval2->format("%H:%I");
echo "<br />";
echo "Total interval : " . $interval1 + $interval2;
Any idea how to perform this type of interval addition to get the sum of the two intervals in total hours and minutes format in PHP