Source Code:
(back to article)
<?php // Define a variable $var = true; // Check if the variable is truthy if ($var) { // If the condition is true, execute the code inside the if block echo "The condition is true."; } ?>
Result:
Report an issue