-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3-variable.php
More file actions
27 lines (27 loc) · 823 Bytes
/
3-variable.php
File metadata and controls
27 lines (27 loc) · 823 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
<!DOCTYPE html>
<html lang="en">
<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>
</head>
<body>
<h1>3- Variable</h1>
<?php
// $variable_name = 'value';
// $salary = 250;
$name = 'Tey Tey'; // string
$weight = 37.5; // float
$height = 155; // integer
$age = 18; // integer
$is_single = false; // boolean
// $is_single = true;
echo "<p>My crush name: ".$name."</p>";
echo "<p>My crush weight: ".$weight."</p>";
echo "<p>My crush height: ".$height."</p>";
echo "<p>My crush age: ".$age."</p>";
echo "<p>My crush is_single: ".$is_single."</p>";
?>
</body>
</html>