This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

The PHP Date() Function

Count The Number of Days To July 4 With strtotime()

There are -143 days until 4th of July.

<?php
$d1=strtotime("July 04");
$d2=ceil(($d1-time())/60/60/24);
echo "<p>There are " . $d2 ." days until 4th of July.</p>";
?>