Tuesday, 4 September 2012

what will be the output of below code ? <?php $arr = array(5 => 1, 12 => 2); $arr[] = 56; $arr["x"] = 42; unset($arr); echo var_dump($arr); ?> | PHP

A. 42
B. 56
C. Null
D. x=42

Ans: C

No comments: