<<< Previous question <<< Question ID#0702.md >>> Next question >>>
What is the output of the code below ?
$a = ['one'=>'php', 'two'=>'javascript', 'three'=>'python'];
$b = ['python', 'javascript', 'php'];
echo (array_values(array_reverse($a)) === $b) ? 'true' : 'false';
- A) true
- B) Fatal error: Can't use function return value in write context
- C) false
- D) Fatal error: function array_values does not exist
Answer
Answer: A