一个简单的php问题,如何让echo的结果10个为一行的换行啊,谢谢!
<?phpfor($cnt=1;$cnt<=100;$cnt++){echo$cnt;if($cnt==100){break;}echo",";}?>...
<?php
for ($cnt = 1; $cnt <=100; $cnt++){
echo $cnt;
if ($cnt == 100){break;}
echo ",";
}
?> 展开
for ($cnt = 1; $cnt <=100; $cnt++){
echo $cnt;
if ($cnt == 100){break;}
echo ",";
}
?> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询