prev

prev

(PHP 4, PHP 5, PHP 7)

prevRewind the internal array pointer

Description

mixed prev ( array &$array )

Rewind the internal array pointer.

prev() behaves just like next(), except it rewinds the internal array pointer one place instead of advancing it.

Parameters

array

The input array.