-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathif.php
45 lines (36 loc) · 999 Bytes
/
if.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
$a = 5;
$b = 10;
$c = '10';
if ($a < $b) {
// TODO: Replace the blanks with the correct description
echo "$a is less than $b\n";
}
if ($b > $a) {
// TODO: Replace the blanks with the correct description
echo "$b is greater than $a\n";
}
if ($b >= $c) {
// TODO: Replace the blanks with the correct description
echo "$b is greater than or equal to $c\n";
}
if ($b <= $c) {
// TODO: Replace the blanks with the correct description
echo "$b is less than or equal to $c\n";
}
if ($b == $c) {
// TODO: Replace the blanks with the correct description
echo "$b is the same value as $c\n";
}
if ($b === $c) {
// TODO: Replace the blanks with the correct description
echo "$b is the same value and has the same type as $c\n";
}
// TODO: Replace `true` with the correct comparison
if ($b != $c) {
echo "$b is not equal to $c\n";
}
// TODO: Replace `true` with the correct comparison
if ($b !== $c) {
echo "$b is not identical to $c\n";
}