echo var_dump($arr);
);
?>
... Learn more about PHP Web Development in The Quiz World"> echo var_dump($arr);
);
?>
, PHP Web Development quiz , quiz about PHP Web Development , details about PHP Web Development , question and answer about PHP Web Development">

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) }