note 95748 deleted from function.mktime by cmb
| From: | cmb@php.net | Date: | Tue, 26 Apr 2016 16:23:29 +0000 |
| Subject: | note 95748 deleted from function.mktime by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205339@lists.php.net to get a copy of this message | ||
Note Submitter: contact at phpmember dot com
----
How many days have passed since the beginning of the year.... regardless of what year it is...
<?php
//Carlos Galindo
//phpmember.com
$days = floor((time()-mktime(null,null,null,1,0,date("Y")))/86400);
echo "$days days have passed";
//Good Luck
?>