nerdexam
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)
  • A
    6% (1)
  • B
    71% (12)
  • C
    18% (3)
  • D
    6% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice