Blogger Information
Blog 4
fans 0
comment 0
visits 1630
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0802 PHP编程作业
沙漠狂奔的鱼
Original
392 people have browsed it

js遍历数组

  1. <script>
  2. let colors=['red','dark','blue','green'];
  3. for(let i=0;i<colors.length;i++){
  4. console.log(colors[i]);
  5. }
  6. <script>

js遍历数组

  1. <?php
  2. $colors=['red','dark','blue','green'];
  3. for($i=0;$i<count($colors);$i++){
  4. echo $colors[$i].'<br>';
  5. }
  6. ?>
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post