Question:Consider the following array, called $multi_array. How would the value cat be referenced
within the $multi_array array?<?php
$multi_array = array("red",
"green",
42 => "blue",
"yellow" => array("apple",
9 => "pear",
"banana",
"orange" => array("dog", "cat", "iguana")
)
);
?>
A $multi_array['yellow']['apple'][0]
B $multi_array['blue'][0]['orange'][1]
C $multi_array[3][3][2]
D $multi_array['yellow']['orange']['cat']
E $multi_array['yellow']['orange'][1]
+ ExplanationThe value cat is in an array buried within two other arrays. Following the path to the string, we see that, first, the yellow key must be referenced, followed by orange. Since the final array is an indexed array, the string cat is the second value and, therefore, has an index key of 1. Therefore, the correct answer is E.