回答編集履歴

1

調整

2019/01/24 10:44

投稿

yambejp
yambejp

スコア114814

test CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  ```PHP
4
4
 
5
- <?PHP
5
+ $len=4;
6
+
7
+ $count=3;
6
8
 
7
9
  $number = 123456789;
8
10
 
9
- $arr = array_map(function($x){
11
+ $arr = array_map(function($x) {
10
12
 
11
13
  return strrev($x);
12
14
 
@@ -20,13 +22,13 @@
20
22
 
21
23
  $number
22
24
 
23
- ), 4, "\t",true
25
+ ),$len, "\t",true
24
26
 
25
27
  )
26
28
 
27
- ),["",""]
29
+ ),array_fill(0,$count-2,"")
28
30
 
29
- ),0,3
31
+ ),0,$count
30
32
 
31
33
  )
32
34
 
@@ -34,6 +36,4 @@
34
36
 
35
37
  print_r($arr);
36
38
 
37
-
38
-
39
39
  ```