Source Code:
(back to article)
<?php // Example 1 $num = 10; if ($num > 5) { echo "The number is greater than 5." . PHP_EOL; } // Output: The number is greater than 5. // Example 2 $color = "red"; if ($color == "blue") { echo "The color is blue."; } else { echo "The color is not blue."; } // Output: The color is not blue.
Result:
Report an issue