-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask5.php
More file actions
25 lines (25 loc) · 791 Bytes
/
task5.php
File metadata and controls
25 lines (25 loc) · 791 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.2
</title>
</head>
<body>
<h1>Comapring two variables to see if they are equal or identical using OR or XOR</h1>
<?php
$number = 1;
$booleanValue = true;
if ($number OR $booleanValue) {
echo "<p>First loop first statement initiated</p>";
} else {
echo "<p>First loop second statement initiated</p>";
}
if ($number XOR $booleanValue) {
echo "<p>Second loop first statement initiated</p>";
} else {
echo "<p>Second loop second statement initiated</p>";
}
?>
</body>
</html>