回答編集履歴
2
追記
test
CHANGED
File without changes
|
1
追記
test
CHANGED
@@ -28,6 +28,24 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
または
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```php
|
36
|
+
|
37
|
+
$hobby = filter_input(INPUT_POST, 'hobby', FILTER_DEFAULT, [
|
38
|
+
|
39
|
+
'flags' => FILTER_REQUIRE_ARRAY
|
40
|
+
|
41
|
+
]);
|
42
|
+
|
43
|
+
var_dump($hobby);
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
|
48
|
+
|
31
49
|
[http://php.net/manual/ja/function.filter-input.php](http://php.net/manual/ja/function.filter-input.php)
|
32
50
|
|
33
51
|
[http://php.net/manual/ja/function.filter-input-array.php](http://php.net/manual/ja/function.filter-input-array.php)
|