Back-End Development PHP basics

Php conditional statements-if, else, elseif

Various Php conditional statements are:

If statements

If statements are one of the most common constructs offering conditional statements.
Syntax:

Example:

Else statements

If the condition in if blocks evaluates to false then else parts is executed.
Syntax:

Example:

Elseif statements

If-else works nicley for either-or conditions,but elseif supports multiple condition checks.
Syntax:

Example: