Re: mktime()
| From: | Chris Shiflett | Date: | Wed, 09 Apr 2003 19:07:51 +0000 |
| Subject: | Re: mktime() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143159@lists.php.net to get a copy of this message | ||
--- shaun <shaun@mania.plus.com> wrote:
> Why does this:
>
> echo date(F, mktime(0, 0, 0, 4, 0, 0));
>
> print 'March';
For the same reason that this:
echo date('F', mktime(0, 0, 0, 12, 32, 0));
outputs January.
April 0 does not exist. PHP is just trying to help you out.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/