運行以下代碼將顯示()值?假設(shè)代碼運行時的URL是:testscript.php?c=25。
A.25 B.-5 C.10 D.5 E.0
為用戶定義函數(shù)is_leap()選擇一個合適的函數(shù)聲明。is_leap使用2000作為默認(rèn)年份。()
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)
考慮如下代碼片段:標(biāo)記處填入什么代碼才能產(chǎn)生如下數(shù)組輸出()。
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