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