- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable_types.php
More file actions
Latest commit
45 lines (30 loc) · 669 Bytes
/
Copy pathvariable_types.php
File metadata and controls
45 lines (30 loc) · 669 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
<html>
<head>
<title>Hi!</title>
</head>
<body>
<?php$name = 'Julia'; ?>
<p>Hi! My name is <?php
echo$name; ?>!</p>
<p>I am <?php$age = 20;
echo$age; ?> years old.</p>
<p>My eyes are <?php$eyes = 'blue';
echo$eyes; ?>.</p>
<?php$family_members = array(
0 => 'Galina',
1 => 'Alina',
2 => 'Ksenia',
3 => 'Eric',
); ?>
<p>The first person in my family is
<?php
echo$family_members[0];
?>.
</p>
<p>Am I - <?php
$hungry = true;
echo'"hungry": ' . (boolval($hungry) ? 'true' : 'false') . "\n";
?>
</p>
</body>
</html>