Source Code:
(back to article)
<?php // This is a variable that holds a value $num = 10; // This is the if statement // It checks if the value of $num is greater than 5 // If the condition is true, the code inside the curly braces {} will be executed if ($num > 5) { // This line will only be executed if the condition is true echo "The value of num is greater than 5"; } ?>
Result:
Report an issue