日期檢測

<html>php

<body>html

<?php
 
$d=date("D");
if ($d=="Sat")
  echo "Have a nice weekend!"; 
else
  echo "Have a nice day!";
?>
</body>
 
</html>
 
\\若是日期是星期六的話就輸出"Have a nice weekend",不然就輸出"Have a nice day!"
相關文章
相關標籤/搜索