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] 

+ Answer
+ Explanation
+ Report
Total Preview: 1821

Copyright © 2024. Powered by Intellect Software Ltd