Search Results
reset () rewinds array 's internal pointer to the first element and returns the value of the first array element.
Definition and Usage The reset () function moves the internal pointer to the first element of the array. Related methods: current () - returns the value of the current element in an array end () - moves the internal pointer to, and outputs, the last element in the array next () - moves the internal pointer to, and outputs, the next element in the array prev () - moves the internal pointer to ...
reset 15 nov. 2018 35 fois (PHP 4, PHP 5, PHP 7, PHP 8) reset — Remet le pointeur interne de tableau au début
PHP reset () Function Topic: PHP Array Reference Prev | Next Description The reset() function set the internal pointer of an array to its first element, and returns its value. The following table summarizes the technical details of this function.
- PHP 4+
Jun 20, 2023 · The reset () function is an inbuilt function in PHP. This function is used to move any array's internal pointer to the first element of that array. While working with arrays, it may happen that we modify the internal pointer of an array using different functions like prev () function, current () function, key () function etc. The reset () function resets the internal pointer to point to the ...
The reset() function rewinds array's internal pointer to the first element and returns the value of the first array element, or FALSE if the array is empty. Returns the first element in an array.
People also ask
What is a reset function in PHP?
How to reset an array in PHP?
What does reset() do in JavaScript?
What is array reset function?
PHP reset function tutorial shows how to reset array internal pointer in PHP. Learn reset with practical examples.
