回答編集履歴
3
3
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
$nums = explode("\n", rtrim($num));
|
16
16
|
|
17
|
-
print_r($num);
|
17
|
+
print_r($nums);
|
18
18
|
|
19
19
|
```
|
20
20
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
$nums = explode("\n", rtrim(str_repeat("4\n", $s)));
|
28
28
|
|
29
|
-
print_r($num);
|
29
|
+
print_r($nums);
|
30
30
|
|
31
31
|
```
|
32
32
|
|
@@ -36,6 +36,8 @@
|
|
36
36
|
|
37
37
|
$s = 5;
|
38
38
|
|
39
|
-
|
39
|
+
$nums = array_fill(0, $s, '4');
|
40
|
+
|
41
|
+
print_r($nums);
|
40
42
|
|
41
43
|
```
|
2
2
test
CHANGED
@@ -36,6 +36,6 @@
|
|
36
36
|
|
37
37
|
$s = 5;
|
38
38
|
|
39
|
-
print_r(array_fill
|
39
|
+
print_r(array_fill(0, $s, '4'));
|
40
40
|
|
41
41
|
```
|
1
1
test
CHANGED
@@ -29,3 +29,13 @@
|
|
29
29
|
print_r($num);
|
30
30
|
|
31
31
|
```
|
32
|
+
|
33
|
+
さらにいえば
|
34
|
+
|
35
|
+
```php
|
36
|
+
|
37
|
+
$s = 5;
|
38
|
+
|
39
|
+
print_r(array_fill (0, $s, '4'));
|
40
|
+
|
41
|
+
```
|