How to Reset the Index/Keys of an Array PHP

You can reset the index of an array in PHP very easily, index is nothing but the element stored place. The array index is also called as array keys. In Array the index will start with zero.

here i am taking the sample array with custom keys, later i will print the array with resetting the index. check the following code.

 

 

Input and output of the above program