PHP Basic Tutorial
MySQL Connection
PHP Advanced
PHP OOP
if statement is a fundamental control structure used to execute a block of code only if a specified condition evaluates to true.
if Statement:if (condition) {
    // Code to be executed if condition is true
}
            
We can also use variables in the if statement: