PHP 编码规范 6.5 for语句
来源:互联网 发布:foxmail通讯录导入mac 编辑:程序博客网 时间:2024/06/05 22:39
6.5 for语句
一个for语句应该具有如下格式:
for (initialization; condition; update) {
statements;
}
一个空的for语句(所有工作都在初始化,条件判断,更新子句中完成)应该具有如下格式:
for (initialization; condition; update);
当在for语句的初始化或更新子句中使用逗号时,避免因使用三个以上变量,而导致复杂度提高。若需要,可以在for循环之前(为初始化子句)或for循环末尾(为更新子句)使用单独的语句。
- PHP 编码规范 6.5 for语句
- PHP 编码规范 3.2 引入语句
- PHP 编码规范 6.1 简单的语句
- PHP 编码规范6.2 复合语句
- PHP 编码规范 6.3 返回语句
- PHP 编码规范 6.6 while语句
- PHP 编码规范 6.7 do...while语句
- PHP 编码规范 6.8 switch语句
- PHP 编码规范 6.9 try...catch语句
- PHP 编码规范 6.4 if与else语句
- PSR规范--php编码规范
- PHP程序编码规范
- PHP 编码规范
- PHP 编码规范
- PHP 编码规范
- PHP 编码规范
- PHP编码规范
- PHP 编码规范1
- 情景模式模拟
- PHP 编码规范 6.4 if与else语句
- Java设计模式之四(经典面试题:工厂模式在开发中的运用)
- 解决Jsp页面中文乱码
- img gamma变化
- PHP 编码规范 6.5 for语句
- TextView的走马灯效果
- c语言如何中止线程
- 深入理解HTTP协议(转)
- 用refresh控制浏览器定时刷新
- 使用 wpa_supplicant
- ajax的open和send
- 十年你能做的能得到的有多少?一个工科IT男的工作回忆
- MFC中打开文件对话框:CFileDlg