PHP IF ELSE & ELSEIF STATEMENTS - PHP LESSON 8 STUDENTSBLOG100 - Anna University Multiple Choice Questions

PHP IF ELSE & ELSEIF STATEMENTS - PHP LESSON 8 STUDENTSBLOG100


Conditional statements in php are..
  • If statement
  • If else statement
  • elseif statement
If Statement:

Syntax:
Example:
Output:
Above condition is correct

If else Statement:

Syntax:
Example php program to check condition:
Output:
Condition is False

If elseif else Statement:

Syntax:
Example php program to find biggest among 3 numbers:
Output:
b is big

Lesson 7  Previous | Main Page | Next Lesson 9

No comments:

Post a Comment