note 95748 modified in function.mktime by danbrown
| From: | danbrown@php.net | Date: | Wed, 20 Jan 2010 00:51:08 +0000 |
| Subject: | note 95748 modified in function.mktime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165124@lists.php.net to get a copy of this message | ||
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
?>
--was--
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
http://php.net/manual/en/function.mktime.php