Gen. partnerAlgotech

PHP function reset()

Set the internal pointer of an array to its first element

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.