Zend
200-530 · Question #36
Which of the following functions is used to insert a new element in the beginning of an array?
The correct answer is C. array_unshift(). See the full explanation below for the reasoning.
Question
Which of the following functions is used to insert a new element in the beginning of an array?
Options
- Aarray_unique()
- Barray_push()
- Carray_unshift()
- Darray_pop()
How the community answered
(34 responses)- A9% (3)
- B3% (1)
- C82% (28)
- D6% (2)
Community Discussion
No community discussion yet for this question.