<<< Previous question <<< Question ID#0069.md >>> Next question >>>
Consider the following PHP script:
$a = [
'1' => "php",
"Hypertext",
"Preprocessor",
"widely used" => [
'general' => 'purpose',
'scripting' => 'language',
'that' => 'was',
'originally' => [
5 => 'designed',
9 => 'for',
'Web development',
4 => 'purpose'
]
]
];
//write code here
What should you write here to print the value 'Web development'?
- A)
print $a['widely used']['originally'][10];
- B)
print $a[widely used][originally][3];
- C)
print $a[2][3][3];
- D)
print $a['widely used']['originally'][0];
Answer
Answer: A