gpt4 book ai didi

php - 循环在整数之前删除零

转载 作者:行者123 更新时间:2023-12-04 15:50:49 25 4
gpt4 key购买 nike

<分区>

如果我的循环运行 3 次,那么输出是 0001,2,3,但我需要

0001
0002
0003

我如何获得此输出?

$i='0001';
foreach($test as $rows){
echo $i;
echo '<br/>';
$i++;
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com