PHP function reset()

Availability in PHP 4.0

Set the internal pointer of an array to its first element

Parameters

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

Return values

mixed

the value of the first array element, or false if the array is empty.

Additional resources

Official reset documentation

Newsletter

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