PHP Control Structure

control structure :-

Determine the flow of control in program.

there are four types of control structurs. they are

 1. sequence c.s :-

are executed in the same order in which they appear in the program.

2.selection or decision control s :-

allow the computer to take a decision as which instruction or control is to be executed next.
3.Repitition or loop c.s :-

to execute the group of statements repeatedly.
4. case c.s :-

allow the computer to take a case as which instruction or control is to be executed next.

OR

PHP Control Structure:-

1. Conditional Control Structure
2. Iterative Control Structure

Sno                 This Expression                            Meaning

1                         x==y                                           x is equal to y

2                        !x=y                                            x is not equal to y

3                        x<y                                             x is less than y

4                        x>y                                              x is greater than y

5                        x<=y                                            x is less than or equal to y

6                        x>=y                                            x is greater than or equal to y

 

Leave a comment