js遍历数组
<script>
let colors=['red','dark','blue','green'];
for(let i=0;i<colors.length;i++){
console.log(colors[i]);
}
<script>
js遍历数组
<?php
$colors=['red','dark','blue','green'];
for($i=0;$i<count($colors);$i++){
echo $colors[$i].'<br>';
}
?>
博客列表 >0802 PHP编程作业
<script>
let colors=['red','dark','blue','green'];
for(let i=0;i<colors.length;i++){
console.log(colors[i]);
}
<script>
<?php
$colors=['red','dark','blue','green'];
for($i=0;$i<count($colors);$i++){
echo $colors[$i].'<br>';
}
?>