Blogger Information
Blog 57
fans 0
comment 0
visits 46964
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
循环结构: for
藍錄的博客
Original
669 people have browsed it

实例

<?php
/**
 * 循环结构: for
 * for (初始条件; 结束条件; 更新条件) { 循环体 }
 */

for ($i=0; $i<10; $i++) {
//    print($i.',');
//    print($i);
//    if ($i < 9) {
//        print(',');
//    }

    ($i<9) ? print($i.',') : print($i);

}

运行实例 »

点击 "运行实例" 按钮查看在线实例

 

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