<?php
for($i=0,$a=5;$i<$a;$i++){
echo $i;
}
//多个赋值用逗号隔开,条件用;隔开
?>
<?php
$i = 0;
$a=5;
for(;$i<$a;$i++){
echo $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!