note 109303 deleted from function.date by sobak

From: Date: Thu, 01 Dec 2016 13:45:33 +0000
Subject: note 109303 deleted from function.date by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207851@lists.php.net to get a copy of this message
Note Submitter: lehal2 at hotmail dot com ---- here is an example how you can make numeric days of the week from 1 to 7(Monday to Friday) <?php $currentdate = mktime(0, 0, 0, date("m") , date("d"), date("Y")); echo $day_eg1 = date ('N',$currentdate); echo $day_eg2 = date("N", $today+1 * 24 * 3600); echo $day_eg3= date("N", $today+2 * 24 * 3600); echo $day_eg4 = date("N", $today+3 * 24 * 3600); echo $day_eg5 = date("N", $today+4 * 24 * 3600); echo $day_eg6 = date("N", $today+5 * 24 * 3600); echo $day_eg7 = date("N", $today+6 * 24 * 3600); ?>

« previous php.notes (#207851) next »