回答編集履歴

1

修正

2017/03/28 08:10

投稿

ttyp03
ttyp03

スコア16998

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  $tel1 = substr($tel, 0, strlen($tel)-8);
8
8
 
9
- $tel2 = substr(substr($tel,-8), 0, 4);
9
+ $tel2 = substr($tel, -8, 4);
10
10
 
11
11
  $tel3 = substr($tel, -4);
12
12