回答編集履歴
1
Update
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
$num =
|
7
|
+
$num = "01354";
|
8
8
|
|
9
9
|
$arr = str_split($num);
|
10
10
|
|
@@ -14,13 +14,11 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
$arr = preg_replace(
|
17
|
+
$arr = preg_replace("/^(0+)(.)/", "$2$1", $arr);
|
18
18
|
|
19
19
|
$arr = intval($arr);
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
print
|
21
|
+
print($arr);
|
24
22
|
|
25
23
|
|
26
24
|
|