Blogger Information
Blog 13
fans 0
comment 0
visits 5486
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
for while 循环语句
安之若素
Original
591 people have browsed it

实例

<?php
  // while 循环可分为入口循环 先判断后输出和出口循环先执行后判断 
  // 
  $i=0;
  while($i<9)
  {
	  echo $i<9 ? $i .',':$i;
	  $i++;
	  }

echo'<hr color="#00CC00">';
//while 出口循环 、
  $i=10;
  
do {
	
	echo $i<9 ?$i.',':$i;
	$i++;
	}
  while($i<1);
// for 循环语句
/* for($i=0;$i<10;$i++){
	 echo $i<9 ?$i.',':$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