Table of Contents
The if
statement is used to execute some code if a condition is true
.
<h2>if Statement</h2>
<p>The if statement executes some code if one condition is true.</p>
<?php
$t = 14;
if ($t < 20) {
echo "Have a good day!";
}
?>
Result View Example
Document in project
You can Download PDF file.