next
next
(PHP 4, PHP 5, PHP 7)
next — Advance the internal pointer of an array
Description
mixed next ( array &$array )
next() behaves like current(), with one difference. It advances the internal array pointer one place forward before returning the element value. That means it returns the next array value and advances the internal array pointer by one.