countdown()

Counts how many days remain until the specified date.


countdown( int $time ) : string

Parameters

$time (int) (Required) Timestamp.

Return Values

(string)

Examples

echo countdown(1602164052);
// <abbr class='atooltip' data-toggle='tooltip' data-placement='top' title='~October 08 2020'>3 days</abbr>