Which function can be used to move the pointer to the previous array position?
Correct answer
C. prev()
10 views
C. prev()
10 views
prev() moves an array's internal pointer back one position and returns the element found there, or false if there are no more elements. It belongs to the same family as current(), next(), reset() and end().
last(), before() and previous() are not PHP functions, which makes them easy distractors to eliminate.
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.