हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

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×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.