date_interval_format()
to Format an Intervaldate_interval_format()
to Format an IntervalThe date_interval_format()
function formats a date interval according to a specified format. This is useful for displaying intervals in a human-readable form.