reindex array php

Solutions on MaxInterview for reindex array php by the best coders in the world

showing results for - "reindex array php"
Allison
06 Nov 2017
1# starts from 0
2$iZero = array_values($arr);
3# starts from 1
4$iOne = array_combine(range(1, count($arr)), array_values($arr));
5