-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask4.php
More file actions
25 lines (25 loc) · 759 Bytes
/
task4.php
File metadata and controls
25 lines (25 loc) · 759 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>
Control structures task 2.1
</title>
</head>
<body>
<h1>Comapring two variables to see if they are equal or identical</h1>
<?php
$number = 1;
$booleanValue = true;
if ($number == $booleanValue) {
echo "<p>These two variables are equal</p>";
} else {
echo "<p>These two variables are not equal</p>";
}
if ($number === $booleanValue) {
echo "<p>These two variables are identical</p>";
} else {
echo "<p>These two variables are not identical</p>";
}
?>
</body>
</html>