-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteamTable.php
More file actions
41 lines (40 loc) · 870 Bytes
/
teamTable.php
File metadata and controls
41 lines (40 loc) · 870 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
<?php
require __DIR__ . "/data.php";
?>
<table>
<tr>
<?php foreach ($teams as $key => $team) : ?>
<th>
<?php echo $key ?>
</th>
<?php endforeach; ?>
</tr>
<tr>
<?php foreach ($teams as $key => $team) : ?>
<td>
<?php echo $team['league']; ?>
</td>
<?php endforeach ?>
</tr>
<tr>
<?php foreach ($teams as $key => $team) : ?>
<td>
<?php echo $team['last-time-champions']; ?>
</td>
<?php endforeach ?>
</tr>
<tr>
<?php foreach ($teams as $key => $team) : ?>
<td>
<?php echo $team['city']; ?>
</td>
<?php endforeach ?>
</tr>
<tr>
<?php foreach ($teams as $key => $team) : ?>
<td>
<a href=" <?php echo $team['url']; ?> "> Web page</a>
</td>
<?php endforeach ?>
</tr>
</table>