PHP function prev()

Availability in PHP 4.0

Rewind the internal array pointer

Parameters

Parameter Data type Default value Note
$array array not The input array.

Return values

mixed

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

Other resources

Official prev documentation

Newsletter

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