forked from dayanec/git-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.1array
More file actions
51 lines (41 loc) · 1.35 KB
/
5.1array
File metadata and controls
51 lines (41 loc) · 1.35 KB
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
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8"/>
</head>
<?php
//arrays da tabela!
$turma[0]="02K01";
$turma[1]="02J01";
$turma[2]="02K01";
$disciplinas[0]="Tec Web 2";
$disciplinas[1]="Linguagem de Programação 1";
$disciplinas[2]="Linguagem de Programação 1";
$semana [0] = "Segunda";
$semana [1] = "Terça";
$semana [2] = "Quarta";
$professores [0] = "Charles";
$professores [1] = "João";
$professores [2] = "Charles";
// tabela! com os nomes dos "temas".
echo "<table width='0' border='1'>
<tr>
<td><b>Turma</td>
<td><b>Disciplina</td>
<td><b>Semana</td>
<td><b>Professor</td>
</tr>";
//função para o numero de linhas da tabela!
for($i = 0; $i<3; $i = $i + 1){
echo "
<tr>
<td>$turma[$i]</td>
<td>$disciplinas[$i]</td>
<td>$semana[$i]</td>
<td>$professores[$i]</td>
</tr>
";
}
echo "</table>";
?>
</html>