Mega Code Archive

 
Categories / Php / Date Time
 

Checking for the day of the week

<?php if (1 == date('w')) {     print "Welcome to the beginning of your work week."; } if (1 == strftime('%w')) {     print "Only 4 more days until the weekend!"; }