note 21082 rejected from function.date by torben

From: Date: Sun, 28 Apr 2002 05:24:44 +0000
Subject: note 21082 rejected from function.date by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29940@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?!

« previous php.notes (#29940) next »