pctechtime Posted January 16, 2007 Share Posted January 16, 2007 In this line $d=date("D");the $d is the var.what does the date do?and what does the ("D") do<html><body><?php$d=date("D");if ($d=="Fri") { echo "Hello!<br />"; echo "Have a nice weekend!"; echo "See you on Monday!"; }?></body></html> Link to comment https://forums.phpfreaks.com/topic/34416-this-may-sound-stupid-but-i-dont-know/ Share on other sites More sharing options...
trq Posted January 16, 2007 Share Posted January 16, 2007 Date is a function. Read about it and what the "D" does in the [url=http://php.net/date]manual[/url]. Link to comment https://forums.phpfreaks.com/topic/34416-this-may-sound-stupid-but-i-dont-know/#findComment-161993 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.