-
Notifications
You must be signed in to change notification settings - Fork 0
/
logical_operator.php
103 lines (88 loc) · 2.74 KB
/
logical_operator.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<?php
$header_footer_bgcolor = "rgb(14, 14, 14)";
$body_color = "#ddd";
$shadow_color = "rgb(146, 135, 135)";
?>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
background-color: #ffffff;
}
.container {
width:900px;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
border: 3px <?php echo $shadow_color ?>;
border-radius: 5px;
box-shadow: 2px 3px 5px <?php echo $shadow_color ?>;
background-color: <?php echo $body_color ?>;
}
.header {
padding: 10px;
background-color: <?php echo $header_footer_bgcolor ?>;
top: 0px;
box-shadow: 2px 3px 5px <?php echo $shadow_color ?>;
}
.footer {
padding: 20px;
background-color: <?php echo $header_footer_bgcolor ?>;
bottom: 0px;
width: 95.70%;
font-size: 8px;
font-family: cursiva-monotype;
font-style: italic;
box-shadow: 2px 3px 5px <?php echo $shadow_color ?>;
}
h1 {
color: black;
}
.Body {
padding: 30px 10px;
text-align:left;
}
</style>
</head>
<body>
<div class="container">
<!-- Header start -->
<div class="header">
<h1 style="color: white;">PHP Logical Operator</h1>
</div>
<!-- Body Start -->
<h3 class="Body">
<?php
$number1 = 25;
$number2 = 40;
$number3 = 22;
echo "Number1 = ".$number1;
echo ", Number2 = ".$number2;
echo ", Number3 = ".$number3;
echo "</br>";
// logical operator
if($number1 > $number2 && $number1> $number3){
echo "Maximum Number is " .$number1;
}elseif($number2> $number3 && $number2 > $number1){
echo "Maximum Number is " .$number2;
}else{
echo "Maximum Number is " .$number3;
}
?>
</h3>
<!-- Body End -->
<!-- Footer start -->
<div class="footer">
<h1 style="color: white;">Learn with fair Powered by Rahatul Rabbi</h1>
</div>
</div>
</body>
</html>