PHP ----- loop structure. For loop statement print pyramid complete pyramid 25 (1; ++ (1;-; ++ nbsp; (1; * 2-1; ++ (1 |. (1 | * 2-1 .} nbsp; br} switch statement: s for loop statement
Print pyramid
Complete pyramid
=25 (=1;<=;++ (=1;<=-;++ ' ' (=1;<=*2-1;++ (==1 || == '.' (==1 || ==*2-1 '.' } ' ' '
' }
Switch statement:
Processing when a Boolean value is encountered in the switch selection statement:
= (: "Mismatch" "1": "Successful match": "ko"
While loop and do... while loop:
".$i; Paxster';
The combination of while loop and switch selection statement:
Constant:
('TAX',200 Tab=100 Tab;
Compile a simple calculator:
Step 1: Write the input interface
Step 2: write the computing background code
Continue statement: Skip the code after this loop. You can specify the number of layers to jump out of, for example, continue 2; two layers to jump out, similar to break 2;
Goto statement: like the C language, jump to the code with tags. the code in the middle is not executed and is ignored directly.
(=0,=50;<100;++ (-- (==17) goto 'i=$i' : 'i='..'j='.;
Print the complete pyramid = 25 (= 1; =; + + (= 1; =-; + + 'nbsp; '(= 1; = * 2-1; ++ (= 1 | = '. '(= 1 | = * 2-1 '. '} 'nbsp; ''' br/'} switch statement: s...