PHP - Conditional Statements

Conditional Statements are used to perform different actions based on the conditions.

In PHP, there are few conditional statements are used to do that.
  • If Statement
    Perform some actions if the condition is true.
  • If.. Else Statement
    Perform some actions if the condition is true and another actions if its false.
  • If... ElseIf Statement
    Perform some actions according to the conditions provided
  • Switch Statement
    Blocks of codes can be executed


Each conditional statements describes in next chapters. 

No comments:

Post a Comment