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

What is if else statement in PHP?

Advertisements
Advertisements

प्रश्न

What is if else statement in PHP?

टीपा लिहा
Advertisements

उत्तर

  1. If a statement executes a statement or a group of statements if a specific condition is satisfied by the user expectation.
  2. When the condition gets false (fail) the else block is executed.

Syntax:

if (condition)
{
Execute statement(s) if condition is true;
}
else
{
Execute statement(s) if condition is false;
}
shaalaa.com
Control structures in PHP
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: PHP Conditional Statements - Evaluation - PART – II [पृष्ठ १११]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×