求高手解析个php题目
<br /><?php<br />$arr = array(0 =>1,'aa' => 2,3,4);<br /> foreach($arr as $key => $val){<br /> echo "key:".$key.",jisuan:";<br /> print($key == 'aa' ? 5 : $val);<br /> echo "<br>";<br /> }<br /><br />?><br /><br />
<br />var tmp = 'a';<br /><br />if([] == false) tmp += 'b';//这里的[]是啥,数组吗<br /><br />if(![]) tmp += 'c';//这里的[]是啥,数组吗<br /><br />alert(tmp); //tmp 值为 ?<br /><br />A.a<br />B.ab<br />C.ac<br />D.abc<br />