Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Output the number of days until 4th of July
SUBMITTED BY:
henry1874w
DATE:
June 17, 2017, 1:30 p.m.
FORMAT:
Text only
SIZE:
179 Bytes
Raw
Download
Tweet
HITS:
234
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$d1=strtotime("July 04");
$d2=ceil(($d1-time())/60/60/24);
echo "There are " . $d2 ." days until 4th of July.";
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus