"test", "1" => "test1", "2" => "test2");$num = count($arr);for($i">
时间:2021-07-01 10:21:17 帮助过:20人阅读
$arr = array(
"0" => "test",
"1" => "test1",
"2" => "test2"
);
$num = count($arr);
for($i=0;$i<$num;){
for($k=0;$k<5;$k++){
//第一层循环自增在这里,如何防止$i超过索引?
//echo $arr[$i];
//$i++
}
}