流程控制的替代语法

流程控制的替代语法
if ( … ) : 。。。。 endif;
if ( … ) : 。。。else: 。。。 endif;
if ( … ): 。。。elseif( … ) : 。。。 elseif( … ): 。。。 else: 。。。 endif;
switch( … ) : case … case … endSwitch;
while(…): 。。。endwhile;
for(…; …; …): 。。。 endfor;

猜你喜欢

转载自blog.csdn.net/qq_37171379/article/details/86584929