why Internal pointer never reset or never get minus ?
when we do unset($value[1]); it remove array value from index 1 but if add new value it goes to next increment internal pointer , it is 2 in our case . it means php will not reuse it next time until whole array not redefined or restart.
why it is there is no intelligent indexing are there in php . in mostly array
why unset only remove value and index but dont fill it again when next value come up to push.
Read more