时间:2021-07-01 10:21:17 帮助过:181人阅读
输出结果为:bcdef
- <br>$result = substr (“abcdef”, 1); <br>echo($result); <br> <br>
输出结果为:bcd
- <br>$result = substr (“abcdef”, 1,3); <br>echo($result); <br> <br>
输出结果为:f
- <br>$result = substr (“abcdef”, -1); <br>echo($result); <br> <br>
输出结果为:ef
- <br>$result = substr (“abcdef”, -2); <br>echo($result); <br> <br>
输出结果为:d
- <br>$result = substr (“abcdef”, -3,1); <br>echo($result); <br> <br>