質問編集履歴

2

codeで再入力

2020/05/17 08:20

投稿

ryoNe
ryoNe

スコア7

test CHANGED
File without changes
test CHANGED
@@ -19,6 +19,8 @@
19
19
 
20
20
 
21
21
 
22
+
23
+ ```HTML・PHP
22
24
 
23
25
  <!DOCTYPE html>
24
26
 
@@ -95,3 +97,5 @@
95
97
  </body>
96
98
 
97
99
  </html>
100
+
101
+ ```

1

実際のコードを追記

2020/05/17 08:20

投稿

ryoNe
ryoNe

スコア7

test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,83 @@
15
15
 
16
16
 
17
17
  ![イメージ説明](c3e59e0471fea505a76b217e834fccb9.png)
18
+
19
+
20
+
21
+
22
+
23
+ <!DOCTYPE html>
24
+
25
+ <html lang="ja">
26
+
27
+ <head>
28
+
29
+ <meta charset="UTF-8">
30
+
31
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
32
+
33
+ <!-- Bootstrap -->
34
+
35
+ <link rel="stylesheet" href="style.css">
36
+
37
+
38
+
39
+ <title>よくわかるPHPの教科書</title>
40
+
41
+ </head>
42
+
43
+ <body>
44
+
45
+ <header>
46
+
47
+ <h1 class="font-weight-normal">よくわかるPHPの教科書</h1>
48
+
49
+ </header>
50
+
51
+
52
+
53
+ <main>
54
+
55
+ <h2>Practice</h2>
56
+
57
+ <!-- PHPの記述を以下に書く
58
+
59
+ 1日18ページ終わらせれば6月中に終了する -->
60
+
61
+ <pre>
62
+
63
+ <?php
64
+
65
+ $fruits = [
66
+
67
+ 'apple' => 'りんご',
68
+
69
+ 'grape' => 'ぶどう',
70
+
71
+ 'lemon' => 'レモン',
72
+
73
+ 'tomato' => 'トマト',
74
+
75
+ 'peach' => 'もも',
76
+
77
+ ];
78
+
79
+
80
+
81
+ foreach ($fruits as $english => $japanese) {
82
+
83
+ print ($english . ':' . $japanese . "\n");
84
+
85
+ }
86
+
87
+
88
+
89
+ ?>
90
+
91
+ </pre>
92
+
93
+ </main>
94
+
95
+ </body>
96
+
97
+ </html>