回答編集履歴

2

誤記修正

2023/01/21 09:34

投稿

tanat
tanat

スコア18713

test CHANGED
@@ -10,7 +10,7 @@
10
10
  ```
11
11
 
12
12
  ```PHP
13
- foreach($arr as $key as $line) {
13
+ foreach($arr as $key => $line) {
14
14
  echo $line;
15
15
  if($key%2 === 1){
16
16
  echo "<br />";

1

誤字修正

2023/01/21 08:34

投稿

tanat
tanat

スコア18713

test CHANGED
@@ -12,8 +12,8 @@
12
12
  ```PHP
13
13
  foreach($arr as $key as $line) {
14
14
  echo $line;
15
- if($key%2 === 1)"{
15
+ if($key%2 === 1){
16
- <br />";
16
+ echo "<br />";
17
17
  }
18
18
  }
19
19
  ```