-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperator.php
More file actions
53 lines (43 loc) · 955 Bytes
/
operator.php
File metadata and controls
53 lines (43 loc) · 955 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
$a = "Hello";
$b = "World!";
$c = $a ." " .$b;
echo $c;
echo "<br>";
echo 1 + 2;
echo "<br>";
echo 10 % 4;
echo "<br>";
echo 10 ** 4; //power
echo "<br>";
echo 1 + 2 *4;
echo "<br>";
echo (1 + 2) *4;
echo "<br>";
$x = 2;
$x = $x +7;
$x += 5;
echo $x;
echo "<br>";
$w = 2;
$p = 4;
if( $w != $p and $w < $p ){
echo "This statement is true";
echo "<br>";
};
$w = 4;
$p = 4;
if( $w === $p ){ //Same datatype and values
echo "This statement is true";
};
?>
</body>
</html>