单项选择题
为用户定义函数is_leap()选择一个合适的函数声明。is_leap使用2000作为默认年份。()
A.function is_leap($year=2000) B.is_leap($year default 2000) C.function is_leap($year default 2000) D.function is_leap($year) E.function is_leap(2000=$year)
A.foreach($result as $key=>$val) B.while($idx*=2) C.for($idx=1;$idx<STOP_AT;$idx*=2) D.for($idx*=2;STOP_AT>=$idx;$idx=0) E.while($idx<STOP_AT)do $idx*=2
A.用for循环 B.用foreach循环 C.用while循环 D.用do…while循环 E.办不到!