PHP function next()

Availability in PHP 4.0

Advance the internal array pointer of an array

Parameters

Parameter Data type Default value Note
$array array not The array being affected.

Return values

mixed

the array value in the next place that's pointed to by the internal array pointer, or false if there are no more elements.

Other resources

Official documentation for the next function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.