亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

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