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!
We have also talked about it before, so the structure of if can be deduced into two structures based on human thinking:
//if单行判断 if(布尔值判断) 只写一句话; 后续代码 //if多行判断 if(布尔值判断){ 可以写多句话; } 后续代码