国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP process control if conditional structure process

if conditional structure process

if and else statements have been explained in the previous chapter 3.2.5. We will explain it again with the example of classmate Wang Sixong to facilitate everyone’s understanding of this chapter.

The knowledge points of this chapter are: [Simultaneous Writing Level]

Basic grammar, there should be no sloppiness, it is completely stipulated by the grammar standards. If you don’t write like this, it will be wrong!

<?php 
$week=date("4");
//判斷星期小于6,則輸出:還沒到周末,繼續(xù)上班.....
if ($week<"6") {
    echo "還沒到周末,繼續(xù)上班.....";
} 
?>

We have also talked about it before, so the structure of if can be deduced into two structures based on human thinking:

//if單行判斷
if(布爾值判斷)
     只寫一句話;
后續(xù)代碼
//if多行判斷
if(布爾值判斷){
    可以寫多句話;
}
后續(xù)代碼


Continuing Learning
||
<?php $week=date("4"); //判斷星期小于6,則輸出:還沒到周末,繼續(xù)上班..... if ($week<"6") { echo "還沒到周末,繼續(xù)上班....."; } ?>
submitReset Code