Skip to content

Commit 4dc554b

Browse files
author
dima_los
committed
Added Tutorial 5 source code
1 parent c232788 commit 4dc554b

File tree

1 file changed

+35
-0
lines changed
  • tutorial-005-mix-php-and-html

1 file changed

+35
-0
lines changed

tutorial-005-mix-php-and-html/bg3.php

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
$character1 = 'Iron Man';
4+
$impression1 = 'The game is amazing! It is worth every penny spent!';
5+
6+
$character2 = 'Mr. Strange';
7+
$impression2 = 'Nothing special. The game shows my regular day.';
8+
9+
$character3 = 'Harry Potter';
10+
$impression3 = 'Havent played the game. Busy fighting Lord Voldemort.';
11+
12+
?>
13+
<!DOCTYPE html>
14+
<html>
15+
<head>
16+
<title>Baldur's Gate 3</title>
17+
</head>
18+
<body>
19+
<h1>Baldur's Gate 3</h1>
20+
<ul>
21+
<li>
22+
<?= $character1 ?>:
23+
"<?= $impression1 ?>"
24+
</li>
25+
<li>
26+
<?= $character2 ?>:
27+
"<?= $impression2 ?>"
28+
</li>
29+
<li>
30+
<?= $character3 ?>:
31+
"<?= $impression3 ?>"
32+
</li>
33+
</ul>
34+
</body>
35+
</html>

0 commit comments

Comments
 (0)