next()
next - Advance the internal array pointer of an array
Syntax
mixed next (
array &$array)
Arguments
- array - The array being affected.
Description
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.
Version
PHP 4, 5
Return value
Returns the array value in the next place that's pointed to by the internal array pointer, or FALSE if there are no more elements.