note 21082 added to function.date
| From: | cectpa at emax dot ru | Date: | Sun, 28 Apr 2002 04:37:31 +0000 |
| Subject: | note 21082 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29939@lists.php.net to get a copy of this message | ||
I'm new to PHP, but I think that in PHP 4.0.6 there is a bug with gmdate() function. If you
write: "<?php echo gmdate("w"); ?>, it will show you "0", even if the
day is Saturday... However, in the book it says that "w" works in gmdate() function, but
actually it works only in date() function. So, if you write: <?php echo date("w");
?> then you'll get "6" for Saturday, not "0" like with gmdate(). Or
I'm wrong?!
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+21082
http://master.php.net/manage/user-notes.php?action=delete+21082
http://master.php.net/manage/user-notes.php?action=reject+21082