हिंदी
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Revision: PHP Conditional Statements Computer Applications HSC Science Class 12 Tamil Nadu Board of Secondary Education

Advertisements

Definitions [2]

Define Conditional Statements in PHP.

Conditional statements are useful for writing decision-making logic. It is the most important feature of many programming languages, including PHP. They are implemented by the following types:

  1. if Statement
  2. if…else Statement
  3. if…else if….else Statement
  4. switch Statement

Define if statement in PHP

If a statement executes a statement or a group of statements if a specific condition is satisfied as per the user expectation.

Syntax:

if (condition)
{
Execute statement(s) if condition is true;
}
Advertisements
Advertisements
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×