nerdexam
National_Instruments

200-500 · Question #63

After performing the following operations: $a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?

The correct answer is C. array('a', 'b', 'c'). See the full explanation below for the reasoning.

Question

After performing the following operations:

$a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?

Options

  • Aarray('c', 'b', 'a')
  • Barray(2, 1, 0)
  • Carray('a', 'b', 'c')
  • DNone of the above

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    74% (26)
  • D
    14% (5)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice