What is the output?
$arr = array(5 => 1, 12 => 2);
$arr[] = 56;
$arr["x"] = 42;
echo var_dump($arr);
);
?>
Options: |
A) array(3) { [5]=> int(1) [12]=> int(2) } B) array(3) { [5]=> int(1) [12]=> int(2) [13]=> int(56) } C) array(4) { [5]=> int(1) [12]=> int(2) [13]=> int(56) ["x"]=> int(42) } D) array(3) { [5]=> int(1) [12]=> int(2) ["x"]=> int(42) } |
Answer : array(4) { [5]=> int(1) [12]=> int(2) [13]=> int(56) ["x"]=> int(42) } |