It formats the interval
Example
<?php
$interval = new DateInterval(‘P12Y14DT16H18M’);
echo $interval->format(‘%d days’);
?>
Output
14 days
<?php
$interval = new DateInterval(‘P12Y14DT16H18M’);
echo $interval->format(‘%d days’);
?>
Output
14 days