Home > Backend Development > PHP Tutorial > PHP Let's take a look at my mood changes over the week. It's quite interesting!

PHP Let's take a look at my mood changes over the week. It's quite interesting!

WBOY
Release: 2016-07-29 08:50:58
Original
1142 people have browsed it





SWITCH quiz


$weekday = date("w"); //Get the day of the week today is one, two, three, four, five, six. Use 0 1 2 3 4 5 6 means
switch($weekday){
case 0:
echo "Sunday: Injury day! ";
break;
case 1:
echo "Monday: Busy day! ";
break;
case 3:
echo "Wednesday: Not dead day! ";
break;
case 4:
echo "Thursday: Death day! ";
break;
case 5:
echo "Friday: Fulai day! ";
break;
case 6:
echo "Saturday: free and easy day! ";
break;
}
?>

The above is an introduction to PHP. Let’s see how my mood changes over the week. It’s quite interesting! It includes some aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template