Zend
200-530 · Question #119
What will be the value of $b after running the following code? $a = array('c', 'b', 'a'); $b = (array)$a;
The correct answer is B. array('c', 'b', 'a'). See the full explanation below for the reasoning.
Question
What will be the value of $b after running the following code? $a = array('c', 'b', 'a'); $b = (array)$a;
Options
- ATRUE
- Barray('c', 'b', 'a')
- Carray(array('c', 'b', 'a'))
- DNone of the above
How the community answered
(17 responses)- A6% (1)
- B71% (12)
- C18% (3)
- D6% (1)
Community Discussion
No community discussion yet for this question.