Thread: Php question
View Single Post
Old 03-02-2010, 09:06 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,059
Quote:
Originally Posted by quantum-x View Post
Why not just

<? if(date('w')>=1 && date('w')<=4) {?>

time() is redundant
Because I am redundant I guess. I usually use the date() function with something other than the current time so I forget that it defaults to using the current time if you leave the param out.

Dangers of answering off the top of my head while I am breaking from code.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote