Source Code:
(back to article)
<?php // Example 1 $x = 2; $y = 'purple'; if ($x == 1 or $x == 2) { // Code block here echo 'x equals 2'; } // Example 2 if ($y == "red" or $y == "blue" or $y == "green") { // Code block here }
Result:
Report an issue