मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

Explain the working of Conditional Statements in PHP? - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain the working of Conditional Statements in PHP?

थोडक्यात उत्तर

उत्तर

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

  1. if Statement:
    If statement executes a statement or a group of statements if a specific condition is satisfied as per the user expectation.
  2. if…else Statement:
    If a statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation. When the condition gets false (fail) the else block is executed.
  3. if…elseif….else Statement:
    If-elseif-else statement is a combination of if-else statements. More than one statement can execute the condition based on user needs.
  4. Switch Case:
    The switch statement is used to perform different actions based on different conditions.
shaalaa.com
Php Conditional Statements
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: PHP Conditional Statements - Evaluation - PART – IV [पृष्ठ १११]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 12 TN Board
पाठ 6 PHP Conditional Statements
Evaluation - PART – IV | Q 3. | पृष्ठ १११
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×