题目:将‘123456789’转换成‘987654321’不要使用函数
$str = '123456789';
$res = '';
$i = 0;
while (isset($str[$i])) {
$res = $str[$i++] . $res;
}
dd($res);
题目:将‘123456789’转换成‘987654321’不要使用函数
$str = '123456789';
$res = '';
$i = 0;
while (isset($str[$i])) {
$res = $str[$i++] . $res;
}
dd($res);