Learn Before
Concept

PHP - The if...else Statement

If a condition is true, the if...else expression executes one piece of code; if it's false, it executes another.

<?php if (condition) { code to be executed if condition is true; } else { code to be executed if condition is false; } ?>

0

1

Updated 2023-02-08

References


Tags

Object-Oriented Programming (OOP) Languages