Home »
Unlabelled »
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
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:
Post a Comment