回答編集履歴
2
例を追加。
test
CHANGED
@@ -10,6 +10,12 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
+
例: substr("01234567", 0, -4); // "0123" を返す
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
13
19
|
[http://php.net/manual/ja/function.substr.php](http://php.net/manual/ja/function.substr.php) 参照。
|
14
20
|
|
15
21
|
|
1
誤記修正
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
上記より手前の残り:
|
2
|
+
|
1
3
|
```php
|
2
4
|
|
3
5
|
substr($tel,0,-8);
|