php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: control-structures.else.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  else				  				 				 				 if				 elseif/else if				 Control Structures				 PHP Manual								   else				   				    Often you'd want to execute a statement if a certain condition is				    met, and a different statement if the condition is not met.  This				    is what else is for.  else				    extends an if statement to execute a statement				    in case the expression in the if statement				    evaluates to FALSE.  For example, the following				    code would display a is bigger than				    b if $a is bigger than				    $b, and a is NOT bigger				    than b otherwise:				    				     								<?phpif ($a > $b) {    echo "a is bigger than b";} else {    echo "a is NOT bigger than b";}?>												     								    								    The else statement is only executed if the				    if expression evaluated to				    FALSE, and if there were any				    elseif expressions - only if they evaluated to				    FALSE as well (see elseif).								   				  				 if				 elseif/else if				 Control Structures				 PHP Manual											

相关资源