note 65692 deleted from function.date by tularis

From: Date: Thu, 09 Feb 2012 21:05:22 +0000
Subject: note 65692 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186034@lists.php.net to get a copy of this message
Note Submitter: Elena S. ---- If you do not PHP5 yet but want a week day to be in ISO format: 1 (for Monday) through 7 (for Sunday), you can use this: <?php //GET WEEK DAY 0 FOR SUNDAY, 6 FOR SATURDAY $x = date( "w" ); $corrected_week_day = 7 - ( (7-$x) % (7+$x) ); ?>

« previous php.notes (#186034) next »