nerdexam
National_Instruments

200-500 · Question #148

Given the following array: $a = array(28, 15, 77, 43); Which function will remove the value 28 from $a?

The correct answer is A. array_shift(). See the full explanation below for the reasoning.

Question

Given the following array:

$a = array(28, 15, 77, 43); Which function will remove the value 28 from $a?

Options

  • Aarray_shift()
  • Barray_pop()
  • Carray_pull()
  • Darray_unshift()

How the community answered

(50 responses)
  • A
    72% (36)
  • B
    4% (2)
  • C
    16% (8)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice