English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is if else statement in PHP? - Computer Applications

Advertisements
Advertisements

Question

What is if else statement in PHP?

Short Note

Solution

  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
  Is there an error in this question or solution?
Chapter 6: PHP Conditional Statements - Evaluation - PART – II [Page 111]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 6 PHP Conditional Statements
Evaluation - PART – II | Q 3. | Page 111
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×