1<?php
2if ($a > $b) {
3 echo "a is bigger than b";
4} elseif ($a == $b) {
5 echo "a is equal to b";
6} else {
7 echo "a is smaller than b";
8}
9?>
1
2<?php
3if ($a > $b) {
4 echo "a is bigger than b";
5} elseif ($a == $b) {
6 echo "a is equal to b";
7} else {
8 echo "a is smaller than b";
9}
10?>
11
12
1$a = random_int(0, 10);
2$b = random_int(0, 10);
3if ($a > $b) {
4 echo 'a is greater than b';
5} elseif ($a == $b) {
6 echo 'a is equal to b';
7} else {
8 echo 'a is less than b';
9}
1
2<?php
3if ($a > $b) {
4 echo "a is greater than b";
5} else {
6 echo "a is NOT greater than b";
7}
8?>
9
10