回答編集履歴

1

ソース整形

2015/11/20 11:52

投稿

yuki84web
yuki84web

スコア1857

test CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  ```php
6
6
 
7
- f ($fileext != "PNG" and $fileext != "JPG") {
7
+ if ($fileext != "PNG" and $fileext != "JPG") {
8
8
 
9
9
  $errors['file_extension'] = "対象ファイルはPNGまたはJPGのみです!";
10
10
 
11
- } else {
11
+ } else {
12
12
 
13
13
  $img_data = "images/" . $_FILES["img_data"]["name"];
14
14
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  }
22
22
 
23
- }
23
+ }
24
24
 
25
25
  ```
26
26